contains the current text being parsed as well as the token_type of what's being parsed. More...
#include <tokenizer.hpp>
Public Types | |
| enum | token_type { STRING , QSTRING , UNTERMINATED_QSTRING , MISC , NEWLINE = '\n' , EQUALS = '=' , COMMA = ',' , PLUS = '+' , SLASH = '/' , OPEN_BRACKET = '[' , CLOSE_BRACKET = ']' , UNDERSCORE = '_' , END = 256 } |
| used for a token's type field More... | |
| enum | source_chars { POUND = '#' , LEFT_ANGLE_BRACKET = '<' , RIGHT_ANGLE_BRACKET = '>' , DOUBLE_QUOTE = '"' , DOLLAR = '$' } |
| not used for a token's type field More... | |
Public Attributes | |
| token_type | type {END} |
| std::string | value |
| the token's value, can be either a single character or multiple characters More... | |
contains the current text being parsed as well as the token_type of what's being parsed.
multi-character token types will have a value that's a string with zero or more characters in it. single character token types are a single character with special meaning for a config
Definition at line 40 of file tokenizer.hpp.
| enum token::source_chars |
not used for a token's type field
| Enumerator | |
|---|---|
| POUND | |
| LEFT_ANGLE_BRACKET | |
| RIGHT_ANGLE_BRACKET | |
| DOUBLE_QUOTE | |
| DOLLAR | |
Definition at line 74 of file tokenizer.hpp.
| enum token::token_type |
used for a token's type field
Definition at line 45 of file tokenizer.hpp.
| token_type token::type {END} |
Definition at line 83 of file tokenizer.hpp.
Referenced by preprocessor_data::get_chunk(), and tokenizer::next_token().
| std::string token::value |
the token's value, can be either a single character or multiple characters
Definition at line 85 of file tokenizer.hpp.
Referenced by tokenizer::next_token().