[antlr-interest] Grammar inheritance problem
Chet
digitalasp at yahoo.com
Sun Jan 21 03:18:43 PST 2007
Just a quick follow up. I made the changes and even though I had the type and
superClass reversed in their order of generation it seems to have taken care of
the issue. Here's the code I am currently using (line 250 of Grammar.java)....
s.append("class " + name + " extends " + type );
if ( superClass != null )
{
s.append(" " + superClass);
}
s.append(";" +
System.getProperty("line.separator") +
System.getProperty("line.separator"));
--- Chet <digitalasp at yahoo.com> wrote:
> I'm having the same problem with 2.7.7. I know this same issue has been
> reported to the list a couple of times and IIRC a preprocessor patch for this
> problem was posted in 2003 for version 2.7.2. The patched code has changed
> since then and seems to have reintroduced the bug.
>
> - snipped -
>
> --- Andrey Timoshenkov <tas at ultersys.ru> wrote:
>
> > Hi All.
> >
> > I have a trouble using ANTLR 2.7.5. I need 2 lexer grammars L1 and L2,
> > where L2 inherits from L1 and I need to specify my own base class for
> > resulting lexer. Below are simple examples:
>
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
More information about the antlr-interest
mailing list