You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parser backtracking issues with nested arrays #2690
I've made multiple attempts to fix this, but all of them have involved non-trivial changes to the AST to avoid backtracking, and none of them have quite worked how I would like. I'm going to suggest this wait until we can move away from Parsec and towards something with better support for automatically left-factoring the grammar.
Now that the cst parser has been merged the error is better:
Error found:
at example.purs:6:15 - 6:16 (line 6, column 15 - line 6, column 16)
Unable to parse module:
Expected ':', saw '='
See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.
Activity
natefaubion commentedon Feb 23, 2017
Originally, the issue manifested for me with record binders in a case statement. But it seems to be an issue with nested arrays in general.
paf31 commentedon Mar 11, 2017
I've made multiple attempts to fix this, but all of them have involved non-trivial changes to the AST to avoid backtracking, and none of them have quite worked how I would like. I'm going to suggest this wait until we can move away from Parsec and towards something with better support for automatically left-factoring the grammar.
hdgarrood commentedon May 7, 2019
Now that the cst parser has been merged the error is better:
so I think this can be closed.