[antlr-interest] My first antlr v3 parser

Kay Roepke kroepke at classdump.org
Fri Sep 1 04:30:07 PDT 2006


On 1. Sep 2006, at 13:24 Uhr, Ilia Kantor wrote:

> Trying to attach a parser to MainLexer using XML example.
> However, antlr.Tool doesn't compile this;

`grammar' is a reserved word, you can't use that for a rule name,  
that's what ANTLR is trying to tell you with the
first error message, and also why the grammar file name is null.

cheers,
-k

-- 
Kay Röpke <kroepke at classdump.org>
classdump Software
Key fingerprint = A849 0F2C C322 4022 379E  8661 7E1B FE0D 4CD2 A6D0





More information about the antlr-interest mailing list