From 0e1f22ac7ee5719048471aad29f69221d045bd34 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 7 Feb 2024 15:50:58 -0500 Subject: [PATCH] [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 --- lib/prism/lex_compat.rb | 1 + 1 file changed, 1 insertion(+) 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