3 ms·
Does this kind of PEG parser deal somewhat decently with partial or incorrect syntax trees?
by mbrock 11y ago
Does this kind of PEG parser deal somewhat decently with partial or incorrect syntax trees?
- deleted 11y ago[deleted]
- vbit 11y agoThe parser will match the specified grammar exactly, like it should. You could of course specify a grammar that is broader than the actual language you are parsing.
- mbrock 11y agoWell, I am vaguely aware of the existence of "incremental parsers" and "tolerant parsers", and a code editor necessarily works on code that's only partially correct...