Install ruby-parser by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-parser
Description:
Ruby parser written in pure Ruby
ruby_parser (RP) can be used to parse and check syntax of Ruby code. "Pure Ruby" in this context means the parser's code * consists solely of Ruby source files * does not add any native extensions or other C code (eg. with RubyInline) which requires a C compiler to be present on the user's system . It utilizes racc and its output is same as that of ParseTree's.
Homepage: https://github.com/seattlerb/ruby_parser
Version: 3.8.2-1
Section: universe/ruby