diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-12-18 11:36:54 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-12-18 11:36:55 -0800 |
| commit | 4b125b70d8584c6ebf2971d588c5c8a106fffc05 (patch) | |
| tree | 17f496bf845e96bbda30a3159f7cd17efec54c5a | |
| parent | 71b7a24c244960a581ee881d48ed38f4188364be (diff) | |
[DOC] Copy Prism release notes to NEWS
| -rw-r--r-- | NEWS.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
