8#include "antlr/CommonToken.hpp"
9#include "antlr/String.hpp"
11#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
15CommonToken::CommonToken() : Token(), line(1), col(1), text(
"")
18CommonToken::CommonToken(
int t,
const ANTLR_USE_NAMESPACE(std)
string& txt)
25CommonToken::CommonToken(
const ANTLR_USE_NAMESPACE(std)
string& s)
32ANTLR_USE_NAMESPACE(std)
string CommonToken::toString()
const
34 return "[\""+getText()+
"\",<"+getType()+
">,line="+getLine()+
",column="+getColumn()+
"]";
37RefToken CommonToken::factory()
39 return RefToken(
new CommonToken);
42#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE