[ 原始碼: lua-lpeg ]
套件:lua-lpeg(1.0.2-2 以及其他的)
LPeg library for the Lua language
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). PEGs look similar to regular expressions or context-free grammars in Backus-Naur form (BNF) notation. PEGs make a good replacement for regular expressions, because they are strictly more powerful. For example, a regular expression inherently cannot find matched pairs of parentheses, because it is not recursive, but a PEG can.