enum error_code error_code_t
Enumeration of error codes.
void stack_init(stack_t *stack)
Initializes the given stack.
ast_node_t * stack_push(stack_t *stack, node_type_t type, token_t *token)
Push a new value on the stack.
void stack_close(stack_t *stack)
Closes the given stack.
error_code_t stack_pop(stack_t *stack, ast_node_t *value)
Pop a value from the stack.
bool stack_isempty(stack_t *stack)
Check if the given stack is empty.
ast_node_t * stack_insert(stack_t *stack, ast_node_t *source)
Push a new value on the stack copying from source pointer.
A struct representing a dynamic stack.
enum node_type node_type_t
struct ast_node ast_node_t
struct stack stack_t
A struct representing a dynamic stack.
struct token token_t
Struct for a Mya token.