<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div>Hi all,<br>I'm really a newbie and have a question. I would like to define string literals enclosed in ` and '. Here's the rules :\<br><br>STR<br> : '`' ( ESC_SEQ | ~('\\'|'"') )* '\'';<br><br>ESC_SEQ<br> : '\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')<br> | UNICODE_ESC<br> | OCTAL_ESC<br> ;<br><br>OCTAL_ESC<br> : '\\' ('0'..'3') ('0'..'7') ('0'..'7')<br> | '\\' ('0'..'7')
('0'..'7')<br> | '\\' ('0'..'7')<br> ;<br><br>UNICODE_ESC<br> : '\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT<br> ;<br><br>HEX_DIGIT :
('0'..'9'|'a'..'f'|'A'..'F') ;<br><br><br>I dunno why it doesn't work. Any help is appreciated.<br><br><br><br><br><br><br></div>
</div><br>
</div></div>
<!-- cg16.c3.mail.sp2.yahoo.com compressed/chunked Wed Dec 9 15:31:59 PST 2009 -->
</div><br>
</body></html>