[antlr-interest] abstract factory LT(1)

Micheal J open.zone at virgin.net
Tue May 10 02:04:15 PDT 2005


LT() is an accessor for lookahead tokens. It is a standard part of ANTLR's
runtime library so, no you shouldn't be looking to change it.
 
Change LT in your grammar file to LTHAN, LESSTHAN or similar.
 
Micheal
ANTLR/C#

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Muhammad Ali
Sent: 10 May 2005 07:42
To: antlr-interest at antlr.org
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/3da3966e/attachment-0001.html


More information about the antlr-interest mailing list