libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
stack.h
Go to the documentation of this file.
1#pragma once
2
3#include "ast.h"
4
5#define STACK_INITIAL_LENGTH 20
6#define STACK_LENGTH_INCREMENT 50
7
11typedef struct stack
12{
14 unsigned int length;
15 unsigned int _size;
A struct representing a dynamic stack.
Definition stack.h:12
unsigned int length
Number of elements on the stack.
Definition stack.h:14
ast_node_t * values
Array of values on the stack.
Definition stack.h:13
unsigned int _size
Current number of elements that fits on the stack.
Definition stack.h:15
struct ast_node ast_node_t
struct stack stack_t
A struct representing a dynamic stack.