Skip to content

Can I try the error tolerance of Prism on CRuby? #2205

Closed Answered by kddnewton
k-nasa asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for opening this @k-nasa — unfortunately we didn't get out error messages properly handled before 3.3 went out, so it still crashes. If you were to run that on Ruby master, it would say:

./miniruby: warning: The compiler based on the Prism parser is currently experimental and compatibility with the compiler based on parse.y is not yet complete. Please report any issues you find on the `ruby/prism` issue tracker.
test.rb: syntax errors found (SyntaxError)
  1 | class Foo
> 2 |   def initialize(
    |                  ^ expected a `)` to close the parameters
  3 |     true
  4 |   end
> 5 | 
    | ^ expected an `end` to close the `class` statement
    | ^ cannot parse the expression

I…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@k-nasa
Comment options

@k-nasa
Comment options

@k-nasa
Comment options

Answer selected by k-nasa
Comment options

You must be logged in to vote
1 reply
@k-nasa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants