libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
token Struct Reference

Struct for a Mya token. More...

#include <token.h>

Collaboration diagram for token:

Data Fields

token_type_t type
 Token type.
 
unsigned int line
 Token line inside the module.
 
unsigned int column
 Column of the token position on the line.
 
long long int value
 Integer value of the token on TK_NUMBER tokens.
 
dstring_t lexeme
 Lexeme of the token.
 

Detailed Description

Struct for a Mya token.

Definition at line 31 of file token.h.

Field Documentation

◆ column

unsigned int token::column

Column of the token position on the line.

Definition at line 35 of file token.h.

◆ lexeme

dstring_t token::lexeme

Lexeme of the token.

Definition at line 37 of file token.h.

◆ line

unsigned int token::line

Token line inside the module.

Definition at line 34 of file token.h.

◆ type

token_type_t token::type

Token type.

Definition at line 33 of file token.h.

◆ value

long long int token::value

Integer value of the token on TK_NUMBER tokens.

Definition at line 36 of file token.h.


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