|
picceler
|
Represents a token produced by the lexer. More...
#include <lexer.h>
Public Types | |
| enum class | Type : size_t { IDENTIFIER , NUMBER , STRING , SYMBOL , EOF_TOKEN , UNKNOWN } |
| The type of the token. More... | |
Public Member Functions | |
| std::string | typeToString () const |
| Converts the token type to a string representation. | |
| std::string | toString () const |
| Converts the token to a string representation. | |
Public Attributes | |
| Type | _type |
| std::string | _value |
| size_t | _line |
| size_t | _column |
Represents a token produced by the lexer.
|
strong |
|
inline |
Converts the token to a string representation.
| std::string picceler::Token::typeToString | ( | ) | const |
Converts the token type to a string representation.
| size_t picceler::Token::_column |
| size_t picceler::Token::_line |
| Type picceler::Token::_type |
| std::string picceler::Token::_value |