LPegLabel

Parsing Expression Grammars For Lua with Labeled Failures

$ luarocks install lpeglabel

LPegLabel is a conservative extension of the
LPeg (http://www.inf.puc-rio.br/~roberto/lpeg)
library that provides an implementation of Parsing
Expression Grammars (PEGs) with labeled failures.
Labels can be used to signal different kinds of errors
and to specify which recovery pattern should handle a
given label. Labels can also be combined with the standard
patterns of LPeg.

Besides that, LPegLabel also reports the farthest
failure position in case of an ordinary failure
(which is represented by label 'fail').

Versions

1.6.0-1169 days ago(revision: 2)2,260 downloads
1.5.0-12 years ago6,401 downloads
1.4.0-12 years ago2,331 downloads
1.3.0-12 years ago102 downloads
1.2.0-13 years ago486 downloads
1.1.0-13 years ago31 downloads
1.0.0-13 years ago57 downloads
0.12.2-23 years ago22 downloads
0.12.2-15 years ago25 downloads

Dependencies

lua >= 5.1

Dependency for

lacord, lua-lsp, lua-parser, molde, nelua, parser-gen

Labels

Manifests