2 ms·
tl;dr: write a parser using goyacc, a yacc port that therefore has some impedance mismatch with Go. (go)yacc is LALR(1) I've been using PEG/Packrat implementat
by lloeki 8y ago
tl;dr: write a parser using goyacc, a yacc port that therefore has some impedance mismatch with Go. (go)yacc is LALR(1)
I've been using PEG/Packrat implementations providing a more "native" experience to great effect lately, notably ruby's treetop and golang's pointlander/peg.
https://github.com/cjheath/treetop https://github.com/cjheath/treetop
https://github.com/pointlander/peg https://github.com/pointlander/peg