3 ms·
You surmised right, though I adore Nim's particular implementation of it compared to the times I've attempted it in, say, Javascript :) Parsing expression gram
by girvo 4y ago
You surmised right, though I adore Nim's particular implementation of it compared to the times I've attempted it in, say, Javascript :)
Parsing expression grammars are easily one of my favourite tools. Honestly, I find them superior to regexes.
- ogogmad 4y agoNever used them, but don't they have memory usage in proportion to the string being parsed? Regexes, LL and LR don't have this shortcoming. This should surely constrain their applications.