enum error_code error_code_t
Enumeration of error codes.
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.
token_t * module_add_token(module_t *module)
Add a new token to module.
error_code_t module_init(module_t *module, const char *filepath)
Initialize a module struct.
void module_print_errors(module_t *module)
Print all errors on the module.
error_code_t module_lookup(module_t *module, int *chret, unsigned int seek)
Get a character on module's file, without removing it from the queue.
void module_close(module_t *module)
Close the given module.
error_code_t module_getc(module_t *module, int *chret)
Get next character on module's file, removing it from the queue.
Struct that represents a Mya module.
struct module module_t
Struct that represents a Mya module.
struct token token_t
Struct for a Mya token.