Skip to content

Commit bf79ef2

Browse files
committed
Mention the prism/parser guide from the parser gem
I wrote something up on how to use both if you need to also parse older ruby versions.
1 parent f44e2df commit bf79ef2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/parser_translation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Prism::Translation::ParserCurrent.parse("puts 'Hello World!'")
2020

2121
All the parsers are autoloaded, so you don't have to worry about requiring them yourself.
2222

23+
If you also need to parse Ruby versions below 3.3 (which `prism` has no support for), check out
24+
[this guide](https://github.com/whitequark/parser/blob/master/doc/PRISM_TRANSLATION.md) from the `parser` gem on how to use both in conjunction.
25+
2326
### RuboCop
2427

2528
Prism as a parser engine is directly supported since RuboCop 1.62.

0 commit comments

Comments
 (0)