parser
parser copied to clipboard
A Ruby parser.
https://github.com/ruby/ruby/commit/e36988450e9e9ccccb41c72135f1e57790920668
https://github.com/ruby/ruby/commit/a850cd1a87bef738c40d9c550fb8823699083f2e
https://github.com/ruby/ruby/commit/0d5b16599a4ad606619228623299b931c48b597b
https://github.com/ruby/ruby/commit/df5ef282337764508a1e1d93459d7a280e46647c
There is an incompatibility in syntax error between Parser gem and Ruby: ```ruby $ cat example.rb
There is an incompatibility in syntax errors for "void value expression" between Parser gem and Ruby. ## Expected `a 1,break,1` has been a syntax error since at least Ruby 2.0:...
```ruby # vim: set fileencoding=euc-jp ``` Should set the file encoding to `euc-jp`.
In reference to: https://github.com/mbj/unparser/issues/340#issue-1642655373, it appears that parser currently accepts syntax that is rejected in MRI: ```ruby case foo in {"#{"a"}": 1} end ``` This is accepted in recent parser...
https://github.com/ruby/ruby/commit/9d3dcb86d1c95ceb75089595145bbfbc32a5c77c
https://github.com/ruby/ruby/commit/44592c4e20a17946b27c50081aee96802db981e6