Skip to content

Using prism translation instead of parser/current at 3.4 #385

@viralpraxis

Description

@viralpraxis

parser is no compatible with Ruby > 3.4:

The parser gem is only compatible with the syntax of Ruby 3.3 and lower. For Ruby 3.4 and later, please use the Prism::Translation::Parser instead. Starting in Ruby 3.4, Prism is the parser used in Ruby itself and can produce AST that is identical to the output of the parser gem. If you only need to parse Ruby 3.3 (or greater) and don't require compatibility with the parser gem AST, also consider using the native Prism AST. See this whitequark/parser#1046 for more details.

(https://github.com/whitequark/parser?tab=readme-ov-file#parser)

I wonder if the gem should use Prism::Translation::Parser instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions