lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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...

Can you be more specific about what you have in mind? An example, perhaps?

-- Roberto