[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LPeg grammars and metatables
- From: Peter Odding <xolox@...>
- Date: Sat, 26 May 2007 16:14:38 +0200
I've been working on a lexer framework based on LPeg and noticed that lpeg.P()
does not accept grammars with open references to patterns defined in another
grammar shadowed by the current grammar with __index. Has support for __index in
grammars been considered for a future version of LPeg? That would allow grammars
to inherit one another via Lua's metatables...
Thanks in advance,
- Peter Odding