Re: LPeg grammars and metatables
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPeg grammars and metatables
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年5月28日 12:41:51 -0300
> 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