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.
void dstring_close(dstring_t *string)
Closes the dynamic string.
long long int value
Integer value of the token.
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_close(token_t *token)
Closes the given token.
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.