Open chriskiefer opened 4 years ago
I recommend creating a warning and suggest the user to correct the grammar and eliminate the ambiguity.
that sounds good. @frantic0 can you add this to the debug window?
sure, I'll add the warning on grammar output. First AST will show on the language parsing output
nearley can generate multiple possibilities with ambiguous grammars (indicated by >1 elements in the root of the parser tree) - how should be deal with this? choose the first one by default and give the user a warning? Or create an error? (tempted towards the latter)