[antlr-interest] Literals not handled in grammars with import
tbrandonau at gmail.com
Mon Aug 25 09:01:02 PDT 2008
Are you sure? A few of the tests utilise literal declarations in
parsers with importing. It wasn't clear from a quick scan if any
actually tested for the correctness of this but they are used. And
this isn't literal declaration but rather using literals in a tree
parser with a standard, non-importing combined lexer\parser. And,
based on the code it looks like this should work it's just because of
the ordering of the processing. I think the fix I provided makes this
work fine without any further issues.
On Tue, Aug 26, 2008 at 1:13 AM, Jim Idle <jimi at temporal-wave.com> wrote:
> On Mon, 2008-08-25 at 17:08 +1000, Thomas Brandon wrote:
> In 31, imported literals are not being handled correctly in tree
> grammars utilising import.
> You cannot use literals in imported grammars, only in single combined
> grammars - sorry.
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
More information about the antlr-interest