Posted By:
Anonymous
Posted On:
Thursday, May 12, 2005 12:25 AM
It's because Token.SKIP is the java representation. Java uses the "." (dot) and C++ uses "::" (colon colon). Also the namespaces are different. The "Token" class only exists in the antlr namespace.
Personally, I use:
{ _ttype = ANTLR_USE_NAMESPACE(antlr)Token::SKIP; }
There may be a better way to do it, but unfortunatly ANTLR appears to me to be geared more towards java.