Florian Leitner-Fischer wrote:
> Jim,
>> Florian, where is this code? In an action? Driver code? Don't use the 
>> direct code like this as if I cahnge it, then all your code will 
>> break.   
> The code stems from the example package.
Really, I don't remember doing that directly. I think that the C Java 
parser example calls LT to force the lexer to run, but the comments 
should say that you do not normally do that.

>> There are macros, such as PARSER and so on that you should use. Look 
>> at the top of the generated code for more details.
>>
>> If you use LT rather than LA, then you will get a token pointer and 
>> it has pointers to the input stream where the token starts and a 
>> length field.
>>   
> I found the macros, but is there some where an example how they are used?
Perhaps you should have a read through the documentation? ;-)

http://www.antlr.org/api/C/index.html

Jim

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to