Skip to content

Mention the prism/parser guide from the parser gem #3520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

Earlopain
Copy link
Contributor

I wrote something up on how to use both if you need to also parse older ruby versions. https://github.com/whitequark/parser/blob/master/doc/PRISM_TRANSLATION.md

I wrote something up on how to use both if you need to also parse older ruby versions.
@@ -20,6 +20,9 @@ Prism::Translation::ParserCurrent.parse("puts 'Hello World!'")

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

If you also need to parse Ruby versions below 3.3 (which `prism` has no support for), check out
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was surprised by this but indeed it looks like Prism has no support < 3.3: #2364.

@rafaelfranca rafaelfranca merged commit 71432af into ruby:main Jul 16, 2025
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants