|
libmya 0.1.0
Library to parse Mya language.
|


Go to the source code of this file.
Functions | |
| error_code_t | mya_lexer (module_t *module) |
| Make the lexical analysis on the given module. | |
| error_code_t | mya_parser (module_t *module) |
| Make the syntactical analysis on the given module and construct the AST. | |
| error_code_t | mya_evaluator (mir_t *mir, module_t *module) |
| Make the semantic analysis on the given module and evaluates the statements, constructing the in-memory intermediate representation. | |
| error_code_t mya_evaluator | ( | mir_t * | mir, |
| module_t * | module ) |
Make the semantic analysis on the given module and evaluates the statements, constructing the in-memory intermediate representation.
| mir | Where the intermediate representation will be added. |
| module | The module to be evaluated. |
Definition at line 6 of file evaluator.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.
| error_code_t mya_parser | ( | module_t * | module | ) |
Make the syntactical analysis on the given module and construct the AST.
| module | The module for make the syntactical analysis. |
Definition at line 12 of file parser.c.