16 "Unexpected token where is expected an include statement."
30 "File not found. You should use an absolute path or a relative path from the current working directory."
void eval_include(mir_t *mir, module_t *module, ast_node_t *ast)
Evaluates an include statement.
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-memo...
void module_add_error(module_t *module, unsigned int line, unsigned int column, unsigned int length, const char *message)
Add error for the given module.
error_code_t module_init(module_t *module, const char *filepath)
Initialize a module struct.
module_t * module_add_submodule(module_t *module)
Add submodule for 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_lexer(module_t *module)
Make the lexical analysis on the given module.
struct ast_node * children
unsigned int length
The length of the string.
char * data
Pointer for the raw string content (a normal C string).
Mya in-memory intermediate representation.
Struct that represents a Mya module.
long long int value
Integer value of the token.
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.
struct ast_node ast_node_t
struct mir mir_t
Mya in-memory intermediate representation.
struct module module_t
Struct that represents a Mya module.
struct token token_t
Struct for a Mya token.