libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
tkstack.h
Go to the documentation of this file.
1#pragma once
2
3#include "types/token.h"
4
5#define TKSTACK_INITIAL_LENGTH 20
6#define TKSTACK_LENGTH_INCREMENT 50
7
11typedef struct tkstack
12{
14 unsigned int length;
15 unsigned int _size;
A struct representing a dynamic stack of token_t pointers.
Definition tkstack.h:12
unsigned int _size
Current number of elements that fits on the stack.
Definition tkstack.h:15
unsigned int length
Number of elements on the stack.
Definition tkstack.h:14
token_t ** values
Array of values on the stack.
Definition tkstack.h:13
struct tkstack tkstack_t
A struct representing a dynamic stack of token_t pointers.
struct token token_t
Struct for a Mya token.