2 ms·
TL;DR: PEG looks to me like simplified lex+yacc For those not familiar with PEG, like me, here: https://en.wikipedia.org/wiki/Parsing_expression_grammar https:
by linsomniac 7y ago
TL;DR: PEG looks to me like simplified lex+yacc
For those not familiar with PEG, like me, here: https://en.wikipedia.org/wiki/Parsing_expression_grammar https://en.wikipedia.org/wiki/Parsing_expression_grammar
I found that fairly abstract, a Python example provided more concrete examples: https://github.com/erikrose/parsimonious https://github.com/erikrose/parsimonious