[antlr-interest] escaped identifier in Verilog

Tak-po Li takpoli at hotmail.com
Thu Dec 13 08:34:09 PST 2007


 
There is so called "escape identifier" in Verilog as: \cciTimer[0]
Where "ccTimer" is the normal identifier.  "[0]" is the vector (or array expansion).  There is no white character between '\' and 'c'.
 
I recall the Verilog example in antlr.org for v2 handles it as:
 
ESCAPED_IDENTIFIER     : '\\'! (~ '\040')+ ('\040'|'\t'|'\n')!    ;
 
It seems it is not working for v3.  Could anyone help with a solution for v3?
 
Thanks,
 
Tak
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071213/d03a467a/attachment.html 


More information about the antlr-interest mailing list