News for hackers. Stuff that matters.
Re:Ohm: Parsing Made Easy by bd82 on Tuesday October 17, 2017 @12:46PM (#15492449)
That is a very good question because afaik many(most?) commercial (meaning "serious"...) programing languages are developed using hand crafted recursive decent parsers which usually mean that the first alternative takes precedence and that there are no grammar validations to detect ambiguities at all.

I do agree that grammar validations and ambiguity detection is very important, but even if the semantics of a PEG grammar define that the first matching alternative should be taken, should it be possible to detect some cases such as unreachable alternatives as long as the grammar is structure is known in advance?

There are no comments on this comment yet.