At 14:04 10/12/2009, Duygu Altinok wrote:
>STR
>     :   '`' ( ESC_SEQ | ~('\\'|'"') )* '\'';

That double-quote should be a single quote.

>ESC_SEQ
>     :   '\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')
>     |   UNICODE_ESC
>     |   OCTAL_ESC
>     ;
>
>OCTAL_ESC
>     :   '\\' ('0'..'3') ('0'..'7') ('0'..'7')
>     |   '\\' ('0'..'7') ('0'..'7')
>     |   '\\' ('0'..'7')
>     ;
>
>UNICODE_ESC
>     :   '\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
>   ;
>
>HEX_DIGIT : ('0'..'9'|'a'..'f'|'A'..'F') ;

All of these should be marked as fragments.


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