i decided to extend my grammar for characters
and i added:

factor  :  '-'? (NUMBER )
        | character
       ;
character : AP (LETTER | NUMBER) AP;
AP : '\'';
LETTER :  'A'..'Z' | 'a'..'Z';
NUMBER :  '0'..'9'+;


it's compile with no error
which is good, 

i running program and i’m sending 
2+3*3 >= 'a' + 2

and that gave me
(>= (+ 2 (* 3 3)) (+ ' ' 2))
line 1:10 no viable alternative at character 'a'

clearly this grammar can’t handle characters
can somebody tell me what i’m doing wrong

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