Registry / utility / ruby-parser

ruby-parser

JSON →
library3.22.0rbrubygemsunverified

A pure Ruby parser for Ruby source code that outputs s-expressions, supporting multiple Ruby versions.

gem install ruby_parser
INSTALL
IMPORT
SIG · RUBY-PARSER
R
ruby-parser
utilityrubyv3.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RubyParser
require 'ruby_parser'

Parse a Ruby code string into an s-expression.

require 'ruby_parser' parser = RubyParser.new sexp = parser.parse('def foo; end') puts sexp.inspect
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.22.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ruby-parser — gem install ruby-parser · libregistry