ROSE 0.11.145.192
|
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. | |
Token (Type tokenType, const SymbolicExpression::Type &exprType, const std::string &lexeme, unsigned lineNumber, unsigned columnNumber) | |
Constructs a specific token from a string. | |
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. | |
SymbolicExpressionParser::SyntaxError | syntaxError (const std::string &mesg, const std::string &name="input") const |
Creates a syntax error from a token plus message. | |
Type | tokenType () const |
Token type. | |
const std::string & | lexeme () const |
Lexeme from which token was parsed. | |
SymbolicExpression::Type | exprType () const |
Type of expression. | |
const Sawyer::Container::BitVector & | bits () const |
Bit vector for numeric constants. | |
unsigned | lineNumber () const |
Line number for start of token. | |
unsigned | columnNumber () const |
Column number for start of token. | |
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, and tokenType().
|
inline |
Construct a token for a numeric constant.
Definition at line 89 of file SymbolicExpressionParser.h.
References exprType(), 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 |
|
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.
Referenced by Token().
|
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.