diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-07 15:50:58 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-07 21:26:14 +0000 |
| commit | 0e1f22ac7ee5719048471aad29f69221d045bd34 (patch) | |
| tree | 9964fa49dbf041427df2cb165afd16e195a771b9 /lib | |
| parent | 1b68b459caa472eb85cfef55bf5cd200da9bf3c5 (diff) | |
[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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/prism/lex_compat.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prism/lex_compat.rb b/lib/prism/lex_compat.rb index 0cc63cd944..c11903423d 100644 --- a/lib/prism/lex_compat.rb +++ b/lib/prism/lex_compat.rb @@ -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 |
