At 20:06 1/11/2008, Ben Gillis wrote:
>Can you tell me more about how you go about it? This is exactly
>what I'm looking into, i.e. what is the best way to define my
>keywords.
I normally just define them directly, ie:
BEGIN: 'begin';
(I used to define them in the tokens section:
tokens {
BEGIN = 'begin';
}
except that in recent versions of ANTLR this sometimes gives odd
warning messages.)
It helps to write lots of unit tests, though. Sometimes
interactions between lexer rules (and ANTLR's minimal lookahead)
can lead to odd results.
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/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
-~----------~----~----~----~------~----~------~--~---