LuaRocks.org had a security incident in September 2026. Read the incident report.

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.2-13 years ago17,009 downloads
1.6.1-13 years ago743 downloads
1.6.0-17 years ago(revision: 2)9,161 downloads
1.5.0-18 years ago8,775 downloads
1.4.0-19 years ago8,698 downloads
1.3.0-19 years ago6,441 downloads
1.2.0-19 years ago722 downloads
1.1.0-19 years ago9,652 downloads
1.0.0-110 years ago169 downloads
0.12.2-210 years ago31 downloads
0.12.2-111 years ago66 downloads

Dependencies

lua >= 5.1

Dependency for

candran, Caribay, hotfix-gen, lacord, lpegrex, lua-glob, lua-language-server, lua-lsp, lua-lsp, lua-lsp, lua-parser, molde, parser-gen, xmlpeg

Labels

Manifests