[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:
Kevin Newton 2024-02-07 15:50:58 -05:00 committed by git
parent 1b68b459ca
commit 0e1f22ac7e

View File

@ -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