|
myshell 2.0.0
|
Structure representing a token. More...
#include <msh_token.h>
Public Member Functions | |
| Token (TokenType t) | |
| Token (TokenType t, std::string value) | |
| void | set_type (TokenType t) |
| bool | get_flag (int flag) const |
| void | set_flag (int flag) |
| void | unset_flag (int flag) |
Public Attributes | |
| TokenType | type = TokenType::EMPTY |
| std::string | value |
| int | flags = 0 |
Structure representing a token.
Token is a single unit of input produced by the lexer and used throughout the shell. All processing operations are performed on tokens.