Prism Ruby parser
Prism Ruby parser
This is a parser for the Ruby programming language. It is designed to be portable, error tolerant, and maintainable. It is written in C99 and has no dependencies.
The repository contains the infrastructure for both a shared library (libprism) and a native CRuby extension. The shared library has no bindings to CRuby itself, and so can be used by other projects. The native CRuby extension links against ruby.h, and so is suitable in the context of CRuby.
…To compile the shared library, you will need:
Once you have these dependencies, run:
bundle installto fetch the Ruby dependencies. Finally, run:
bundle exec rake compileto compile the shared library. It will be built in the build directory. To test that everything is working, run:
bin/parse -e "1 + 2"to see the syntax tree for the expression 1 + 2.
See the CONTRIBUTING.md file for more information. We additionally have documentation about the overall design of the project as well as various subtopics.
Prism has been integrated into the majority of Ruby runtimes, many libraries, and some applications. Below is a list of some of the projects that use Prism:
No open issues yet, or sync has not completed.