[antlr-interest] abstract factory LT(1)
Alexey Demakov
demakov at ispras.ru
Tue May 10 03:22:00 PDT 2005
It is method, not field:
Parser.cs:
/*Return the ith token of lookahead */
public abstract Token LT(int i);
Try to rename LT -> LESS_THAN
Regards,
Alexey
-----
Alexey Demakov
TreeDL: Tree Description Language: http://treedl.sourceforge.net
RedVerst Group: http://www.unitesk.com
----- Original Message -----
From: Muhammad Ali
To: antlr-interest at antlr.org
Sent: Tuesday, May 10, 2005 10:41 AM
Subject: [antlr-interest] abstract factory LT(1)
Hi everyone,
I have genereated some C# code from a grammar file for antlr that I downloaded.
The generated code has a lot of calls like this:
[code]
tmp1_AST = (XQueryAST) astFactory.create(LT(1));
[/code]
This gives me errors because LT is also defined in the same file as a field to represent the 'less-than' (<) token.
Anyway, what is LT(1)? Is there something else with which I can replace it?
Thanks...
Regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050510/a9a7d2f1/attachment.html
More information about the antlr-interest
mailing list