[antlr-interest] Regular Expressions

Daniela da Cruz danieladacruz at gmail.com
Wed Jul 4 15:19:18 PDT 2012


Hello all

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" ;


More information about the antlr-interest mailing list