6 ms·
Indeed. The peg parser generator is quite nice: http://piumarta.com/software/peg/ http://piumarta.com/software/peg/ I recently used it to implement an s-expre
by doelie_ 17y ago
Indeed. The peg parser generator is quite nice:
http://piumarta.com/software/peg/ http://piumarta.com/software/peg/
I recently used it to implement an s-expression reader:
http://zwizwa.be/darcs/libprim/ex/sexp.leg http://zwizwa.be/darcs/libprim/ex/sexp.leg
(It's incomplete, but it illustrates the principle: peg parsing is very nice for quick & dirty parsing work.)