LPeg 是一个基于解析表达式语法 ( [PEG] ) 的模式匹配库。
网站: http://www.inf.puc-rio.br/~roberto/lpeg/
描述
GavinWraith 撰写了一篇很棒的关于 Lua 中 PEG 的介绍,[Around PEGs]。
在 Windows 上构建 LPeg
cl /c /nologo /DWIN32 /DWIN32_LEAN_AND_MEAN lpeg.c
link /dll /out:lpeg.dll lpeg.obj /nodefaultlib:libc /export:luaopen_lpeg msvcrt.lib lua5.1.lib
作者
RobertoIerusalimschy
使用 LPeg 的项目
分支/重实现
论文
- [1] Ierusalimschy, R. (2009), "A text pattern-matching tool based on parsing expression grammars", Software: Practice & Experience 39 #3: 221–258。
- [2] Medeiros, S.; Ierusalimschy, R. (2008), "A parsing machine for PEGs", Proc. of the 2008 symposium on Dynamic languages, art. #2。
另请参阅
RecentChanges · preferences
编辑 · 历史
最后编辑于 2012 年 2 月 3 日 晚上 9:22 GMT (差异)