On Thu, Nov 17, 2011 at 10:14 AM, D. Frej <dieter_f...@gmx.net> wrote:

>  and still: the compilation error stays even if I do not quote the
> question mark
>

Ah, hold on, you're using the `..` (range) operator inside a parser rule
(horef). Either create a lexer rule matching '?'  'a'..'z':

Horef
    :    '?' 'a'..'z'
    ;

, or move  'a'..'z' to a lexer rule:

horef
    :    '?' Letter
    ;

Letter
  :  'a'..'z'
  ;


But still, the question mark should not be escaped.

Regards,

Bart.

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 il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to