mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/prism] Dev-only CLI
We keep adding more scripts to /bin that are doing the same kinds of processing. Instead, this commit consolidates them all into a single CLI that shares the same logic so that we can consistently read files in the same way. It keeps around 2 binstubs for bin/lex and bin/parse since those are the most used and I'm sure people have built up muscle memory for those. Those scripts are now just wrappers for forwarding to bin/prism. https://github.com/ruby/prism/commit/bddcb9bf17
This commit is contained in:
parent
1b68b459ca
commit
0e1f22ac7e
@ -1,6 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "delegate"
|
||||
require "ripper"
|
||||
|
||||
module Prism
|
||||
# This class is responsible for lexing the source using prism and then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user