[antlr-interest] unexpected char: 'u'

whaefelinger ora.et.labora at web.de
Fri Oct 22 04:56:36 PDT 2004



Hello,
right now I trying to attack my comment problem with a predicate:

 COMMENT
    :
        "--" 
        (
           ~('-'|'\n'|'\r'|'\u000b'|'\u000c') | {LA(2) != '-'}? '-'
        )*
        {
           // consume "end-of-comment" characters
           switch(LA(1)) {
            ..
            case '\u000b' : {        <== syntax error on '\u000b'
              match('\u000b');       <==       dito
              break;
            }
            ..
           }
        }
    ;

Please don't question the rule as such (pending: try posted 
proposals). 

The problem is rather that ANTLR complains about '\u000b' albeit it
appears to me that this is pretty much correct Java.

Smells like a bug?

Cheers,
Wolfgang.  





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list