[antlr-interest] How can i get ML_COMMENT
kts81932
kts81932 at yahoo.co.kr
Mon Mar 11 00:49:41 PST 2002
NIce to meet you.
recently, i used antlr_2.1.7..
single line comment is defined as below..
SL_COMMENT
: "//" (~'\n')* '\n"
{ _ttype = antlr::Token::SKIP; newline();}
;
to get SL_COMMENT in output, modified as below...
SL_COMMENT
: "//" (~'\n')* '\n"
{ newline();}
;
same way, i modified ML_COMMENT
( delete { _ttype = antlr::Token::SKIP: }...)
but i can not get ML_COMMENT in output..
to get ML_COMMENT in output
What shall i do..
thanks..
ML_COMMENT
: "/*"
( {LA(2) != '/'}? '*'
| '\n' { newline(); }
| ~('*' | '\n')
)+
"*/"
{ _ttype = antlr::Token::SKIP; }
;
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list