#include <token.hpp>
◆ Token()
Token::Token |
( |
Type | type, |
|
|
const string & | text, |
|
|
const string & | file, |
|
|
tuple< int, int > | position ) |
|
inline |
Construct a new Token object.
- Parameters
-
type | The type of the token |
text | The text of the token |
file | The file of the token |
position | The position of the token |
◆ get_column()
int Token::get_column |
( |
| ) |
|
Get token column number.
- Returns
- The column number of the token
◆ get_file()
string Token::get_file |
( |
| ) |
|
File getter.
- Returns
- The file name where the token was found
◆ get_line()
Get token line number.
- Returns
- The line number of the token
◆ get_position()
tuple< int, int > Token::get_position |
( |
| ) |
|
Position getter.
- Returns
- The position of the token
◆ get_text()
string Token::get_text |
( |
| ) |
|
Text getter.
- Returns
- The text of the token
◆ get_type()
Type getter.
- Returns
- The type of the token
◆ to_string()
string Token::to_string |
( |
| ) |
const |
Stringify the token.
- Returns
- The stringified token
◆ file
◆ position
tuple<int, int> Token::position |
|
private |
◆ text
◆ type
The documentation for this class was generated from the following files: