void dstring_init(dstring_t *string, unsigned int buffer_size)
Initializes a dynamic string (dstring).
void dstring_copy(dstring_t *string, const char *source)
Copies the content of source to the dstring.
long long int value
Integer value of the token on TK_NUMBER tokens.
token_type_t type
Token type.
dstring_t lexeme
Lexeme of the token.
unsigned int line
Token line inside the module.
unsigned int column
Column of the token position on the line.
void token_init(token_t *token, const char *lexeme, token_type_t type, unsigned int line, unsigned int column)
Initializes a token struct.
enum token_type token_type_t
Enumeration of token types.
struct token token_t
Struct for a Mya token.