myshell 2.0.0
Loading...
Searching...
No Matches
Token Struct Reference

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
 

Detailed Description

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.

See also
tokens_t
TokenType
token_flags

The documentation for this struct was generated from the following file: