OpenMD 3.1
Molecular Dynamics in the Open
|
A token is minimally a token type. More...
#include <Token.hpp>
Public Member Functions | |
Token (int t) | |
Token (int t, const std ::string &txt) | |
virtual int | getColumn () const |
virtual int | getLine () const |
virtual std::string | getText () const |
virtual const std::string & | getFilename () const |
virtual int | getType () const |
virtual void | setColumn (int c) |
virtual void | setLine (int l) |
virtual void | setText (const std ::string &t) |
virtual void | setType (int t) |
virtual void | setFilename (const std::string &file) |
virtual std::string | toString () const |
Static Public Attributes | |
static const int | MIN_USER_TYPE = 4 |
static const int | NULL_TREE_LOOKAHEAD = 3 |
static const int | INVALID_TYPE = 0 |
static const int | EOF_TYPE = 1 |
static const int | SKIP = -1 |
Friends | |
struct | TokenRef |
A token is minimally a token type.
Subclasses can add the text matched for the token and line info.
|
inline |
|
virtual |
Reimplemented in antlr::CommonToken.
|
virtual |
|
virtual |
Reimplemented in antlr::CommonToken.
|
virtual |
Reimplemented in antlr::CommonToken.
|
virtual |
Reimplemented in antlr::CommonToken.
|
virtual |
|
virtual |
Reimplemented in antlr::CommonToken.
|
virtual |
Reimplemented in antlr::CommonToken.