[antlr-interest] How to get the token's string value in C++??
macromliu
macromliu at yahoo.com.cn
Wed Mar 26 07:25:32 PST 2003
I have composed a rules as following,
and i want to get the token's text value, and return it,
i have tried the two method in the following code,
but failed!
STRING returns[char *v] //[char **pStr]
: '\'' (ESC|~'\'') '\''
{
//v=_strdump($getText);
//string *str= ;
//*pStr = strdump(getText().toString().c_str());
//v = strdump(getText().toString().c_str()));
}
;
so someone can give me a tip?
:-)
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list