|
libmya 0.1.0
Library to parse Mya language.
|
#include <ctype.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "cqueue.h"#include "debug.h"#include "dstring.h"#include "module.h"#include "token.h"#include "types/err.h"#include "types/keywords.h"#include "types/operators.h"
Go to the source code of this file.
Macros | |
| #define | MOD_ADD(lexeme, type) |
Functions | |
| error_code_t | mya_lexer (module_t *module) |
| Make the lexical analysis on the given module. | |
| #define MOD_ADD | ( | lexeme, | |
| type ) |
Definition at line 47 of file lexer.c.
| error_code_t mya_lexer | ( | module_t * | module | ) |
Make the lexical analysis on the given module.
It will construct the module->tokens list and maybe registry some errors on module->errors list.
| module | The module for make the lexical analysis. |
Definition at line 53 of file lexer.c.