Information about an individual token type to be processed within a Lexer.
More...
#include <Lexer.h>
Information about an individual token type to be processed within a Lexer.
emp::TokenInfo::TokenInfo |
( |
const std::string & |
n, |
|
|
const std::string & |
r, |
|
|
size_t |
i, |
|
|
bool |
s = false |
|
) |
| |
|
inline |
emp::TokenInfo::TokenInfo |
( |
const TokenInfo & |
| ) |
|
|
default |
void emp::TokenInfo::Print |
( |
std::ostream & |
os = std::cout | ) |
const |
|
inline |
Print out the status of this token (for debugging)
size_t emp::TokenInfo::id |
std::string emp::TokenInfo::name |
RegEx emp::TokenInfo::regex |
Pattern to describe token type.
bool emp::TokenInfo::save_lexeme |
Should we preserve the lexeme for this token?
The documentation for this struct was generated from the following file: