2 ms·
If you're interested in PEGs, packrat parsers, etc., also check out Roberto Ierusalimschy's LPEG (http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html http://www.i
by silentbicycle 18y ago
If you're interested in PEGs, packrat parsers, etc., also check out Roberto Ierusalimschy's LPEG (http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html). It's a PEG vm for Lua, written in C, and with some tuning for better space performance.
There's an excellent paper about it here -- http://www.inf.puc-rio.br/~roberto/docs/peg.pdf http://www.inf.puc-rio.br/~roberto/docs/peg.pdf