ROSE
0.11.131.0
|
Tokens generated by the lexical analysis.
Definition at line 56 of file SymbolicExpressionParser.h.
#include <Rose/BinaryAnalysis/SymbolicExpressionParser.h>
Public Types | |
enum | Type { NONE = 0, LTPAREN, RTPAREN, BITVECTOR, SYMBOL } |
Token types. More... | |
Public Member Functions | |
Token () | |
Constructs an end-of-input token with no position information. More... | |
Token (Type tokenType, const SymbolicExpression::Type &exprType, const std::string &lexeme, unsigned lineNumber, unsigned columnNumber) | |
Constructs a specific token from a string. More... | |
Token (const Sawyer::Container::BitVector &bv, const SymbolicExpression::Type &exprType, const std::string &lexeme, unsigned lineNumber, unsigned columnNumber) | |
Construct a token for a numeric constant. More... | |
SymbolicExpressionParser::SyntaxError | syntaxError (const std::string &mesg, const std::string &name="input") const |
Creates a syntax error from a token plus message. More... | |
Type | tokenType () const |
Token type. More... | |
const std::string & | lexeme () const |
Lexeme from which token was parsed. More... | |
SymbolicExpression::Type | exprType () const |
Type of expression. More... | |
const Sawyer::Container::BitVector & | bits () const |
Bit vector for numeric constants. More... | |
unsigned | lineNumber () const |
Line number for start of token. More... | |
unsigned | columnNumber () const |
Column number for start of token. More... | |
Token types.
Definition at line 59 of file SymbolicExpressionParser.h.
|
inline |
Constructs an end-of-input token with no position information.
Definition at line 77 of file SymbolicExpressionParser.h.
|
inline |
Constructs a specific token from a string.
Do not use this to construct numeric tokens.
Definition at line 81 of file SymbolicExpressionParser.h.
References BITVECTOR.
|
inline |
Construct a token for a numeric constant.
Definition at line 89 of file SymbolicExpressionParser.h.
References Rose::BinaryAnalysis::SymbolicExpression::Type::nBits(), and Sawyer::Container::BitVector::size().
|
inline |
Creates a syntax error from a token plus message.
Definition at line 97 of file SymbolicExpressionParser.h.
|
inline |
Token type.
Definition at line 102 of file SymbolicExpressionParser.h.
|
inline |
Lexeme from which token was parsed.
Definition at line 105 of file SymbolicExpressionParser.h.
|
inline |
Type of expression.
Definition at line 108 of file SymbolicExpressionParser.h.
|
inline |
Bit vector for numeric constants.
The bit vector will be empty for non-numeric tokens.
Definition at line 111 of file SymbolicExpressionParser.h.
|
inline |
Line number for start of token.
Definition at line 114 of file SymbolicExpressionParser.h.
|
inline |
Column number for start of token.
Definition at line 117 of file SymbolicExpressionParser.h.