39 ms·
> You don't have ambiguity in the grammar because monadic parsers only provide ordered options. Oh, but you do have ambiguity in the grammar, except that parse
by dozzie 9y ago
> You don't have ambiguity in the grammar because monadic parsers only provide ordered options.
Oh, but you do have ambiguity in the grammar, except that parser
returns one of the possible parse trees deterministically and thus doesn't
warn you that the input could be parsed differently. This leads to the false
impression that your grammar is unambiguous.
- marcosdumay 9y agoThe parser implements an unambiguous grammar. But it may not be the grammar you were thinking it was. Specifically, it makes it impossible for you to even write down that ambiguous grammar you wanted.