Skip to content

Commit

Permalink
[DOC] Copy Prism release notes to NEWS
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Dec 18, 2023
1 parent 71b7a24 commit 4b125b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,20 @@ The following bundled gems are updated.
See GitHub releases like [Logger](https://github.com/ruby/logger/releases) or
changelog for details of the default gems or bundled gems.
### Prism
* Introduced [the Prism parser](https://github.com/ruby/prism) as a default gem
* Prism is a portable, error tolerant, and maintainable recursive descent parser for the Ruby language
* Prism is production ready and actively maintained, you can use it in place of Ripper
* There is [extensive documentation](https://ruby.github.io/prism/) on how to use Prism
* Prism is both a C library that will be used internally by CRuby and a Ruby gem that can be used by any tooling which needs to parse Ruby code
* Notable methods in the Prism API are:
* `Prism.parse(source)` which returns the AST as part of a parse result object
* `Prism.parse_comments(source)` which returns the comments
* `Prism.parse_success?(source)` which returns true if there are no errors
* You can make pull requests or issues directly on [the Prism repository](https://github.com/ruby/prism) if you are interested in contributing
* You can now use `ruby --parser=prism` or `RUBYOPT="--parser=prism"` to experiment with the Prism compiler. Please note that this flag is for debugging only.
## Supported platforms
## Compatibility issues
Expand Down

0 comments on commit 4b125b7

Please sign in to comment.