3 ms·
You might already be aware of this, but 'pegs' likely refers to Parsing Expression Grammars [1], a super powerful and imho very chill concept which translates i
by WaxProlix 4y ago
You might already be aware of this, but 'pegs' likely refers to Parsing Expression Grammars [1], a super powerful and imho very chill concept which translates into great tooling in lots of languages.
1 https://en.wikipedia.org/wiki/Parsing_expression_grammar https://en.wikipedia.org/wiki/Parsing_expression_grammar
- girvo 4y agoYou 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.