Closed nanobowers closed 1 year ago
[1,2,3].each do |x| puts x end
The |x| on the next line is confusing the parser.
|x|
08:21 $ ruby -I lib:ext -r natalie_parser -e 'p NatalieParser.parse(File.read("../temp_natalie_parser_tests/each_nextline.rb"))' -e:1:in `parse': (string)#2: syntax error, unexpected '|' (expected: 'expression') (SyntaxError) |x| puts x ^ here, expected 'expression' from -e:1:in `<main>'
Archiving this repo in favor of YARP...
The
|x|
on the next line is confusing the parser.