I am trying to get the attached grammar to match from one token to the
next. The generated code has this if which doesn't look correct to me:

if ( (input.LA(1)>='\u0000' &&
input.LA(1)<='\u0004')||(input.LA(1)>='\u0006' && input.LA(1)<='\uFFFF') ) {
                        input.consume();

 }

I don't see why it should consume \u0005 which seems to be some kind of
a non printable character. I am using antlr 3.3. Is this a bug in ANTLR
or am I just doing something wrong?

Regards,
Petteri
grammar test_negation;

start   : (STRING|var_def)+;
var_def
        :       VAR_DEF_START;

VAR_DEF_START
        :       '${';

STRING  :       '"' ~VAR_DEF_START+;
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