[antlr-interest] Regular Expressions (2)
Daniela da Cruz
danieladacruz at gmail.com
Wed Jul 4 15:20:49 PDT 2012
Sorry. The previous email was sent before I finish it.
I am developing an Objective-C 2.0 grammar using the Antlr v2.7.
The problem I'm facing is that there exist some ambiguous reserved words.
For instance and using k = 1 in Lexer, there exist
@protected, @private, @public, @interface, in, inout, ...
defining these regular expressions like:
AT_PROTECTED : "@protected" ;
AT_PRIVATE : "@private" ;
Using this approach, of course, I get a lot of warnings because they are
How do you suggest to solve them?
Factorize them and then set the token type accordingly?
More information about the antlr-interest