14 token = &
module->tokens[tk_index];
enum error_code error_code_t
Enumeration of error codes.
error_code_t mya_parser(module_t *module)
Make the syntactical analysis on the given module and construct the AST.
unsigned int parse_statement(module_t *module, ast_node_t *parent, token_t *token)
Parse a statement adding it as a children on parent AST node.
Struct that represents a Mya module.
ast_node_t ast
AST of the module.
unsigned int tokens_count
Number of tokens on tokens list.
token_type_t type
Token type.
struct module module_t
Struct that represents a Mya module.
struct token token_t
Struct for a Mya token.