3 ms·
Is ordered a choice a necessary property for PEG parsing? Maybe PEG parser generators should have an "unordered mode".
by nerdponx 9y ago
Is ordered a choice a necessary property for PEG parsing? Maybe PEG parser generators should have an "unordered mode".
- victorNicollet 9y agoIn practice, they should distinguish between / (I meant this alternative to be ordered, because I care about something) versus | (no ordering required, because I know only one choice will ever be picked), and come up with a way to determine that a | generates an ambiguity.