lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



 I just wished their was more LPEG specific resources just because of how easy it is to use, compared to BISON or ANTLR.
best wishes.

A good starting point is [1] (from the author of Moonscript).

There is also a talk by Roberto at an old Lua workshop (dated but still useful) [2].

Then you probably want working examples. Here are a few suggestions (some use LPegLabel): [3] [4] [5] [6] [7].

[1] https://leafo.net/guides/parsing-_expression_-grammars.html
[2] https://vimeo.com/1485123
[3] https://github.com/daurnimator/lpeg_patterns
[4] https://github.com/andremm/lua-parser
[5] https://github.com/catwell/datalog.lua/blob/master/datalog/parser.lua
[6] https://github.com/harningt/luajson/tree/master/lua/json/decode
[7] https://github.com/luapower/lexer