3 ms·
I love LPEG for Lua. It usually takes me some time to write a decent grammar, but once it works it is rather straightforward to read it. (http://www.inf.puc-rio
by patrickg 17y ago
I love LPEG for Lua. It usually takes me some time to write a decent grammar, but once it works it is rather straightforward to read it. (http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html)
Now seeing this for javascript makes me think if I should actually do more work with js.
- richard_lyman 17y agoAmen on the easy to read part. I'm the author of clj-peg ( http://www.lithinos.com/clj-peg/ http://www.lithinos.com/clj-peg/ ), and the main reason I wanted to write it was to have grammars that were human readable.
- allyt 17y agoI'm really interested in human-readable grammars. Thanks for your work.