1#ifndef INC_CommonToken_hpp__
2#define INC_CommonToken_hpp__
11#include <antlr/config.hpp>
12#include <antlr/Token.hpp>
15#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
22 CommonToken(
int t,
const ANTLR_USE_NAMESPACE(std)
string& txt);
23 CommonToken(
const ANTLR_USE_NAMESPACE(std)
string& s);
26 virtual ANTLR_USE_NAMESPACE(std)
string getText()
const
32 virtual void setText(
const ANTLR_USE_NAMESPACE(std)
string& s)
65 virtual ANTLR_USE_NAMESPACE(std)
string toString()
const;
72 ANTLR_USE_NAMESPACE(std)
string text;
79#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
virtual int getColumn() const
gt the column the token is at (starting at 1)
virtual void setText(const std ::string &s)
set contents of token
virtual int getLine() const
get the line the token is at (starting at 1)
virtual void setColumn(int c)
set column for token
virtual std::string getText() const
return contents of token
virtual void setLine(int l)
set line for token
A token is minimally a token type.