Closed siraben closed 2 years ago
Changing sequence: $ => prec.left(1,sep1($.step,$._ms)),
to sequence: $ => prec.right(1,sep1($.step,$._ms)),
fixes the issue but causes other test cases to fail, would need to inspect precedence of nested program constructs.
The following program
produces the parse tree
Whereas we expect something like