|
libmya 0.1.0
Library to parse Mya language.
|

Go to the source code of this file.
Functions | |
| void | token_init (token_t *token, const char *lexeme, token_type_t type, unsigned int line, unsigned int column) |
| Initializes a token struct. | |
| void | token_close (token_t *token) |
| Closes the given token. | |
| void token_close | ( | token_t * | token | ) |
| void token_init | ( | token_t * | token, |
| const char * | lexeme, | ||
| token_type_t | type, | ||
| unsigned int | line, | ||
| unsigned int | column ) |
Initializes a token struct.
| token | The token to be initialized. |
| lexeme | Token's lexeme with LEXEME_MAX_SIZE maximum size. |
| type | Token type. |
| line | Token's line inside the module. |
| column | Token's column on line. |
Definition at line 7 of file token.c.