libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
tkqueue.h
Go to the documentation of this file.
1#pragma once
2
3#include "types/token.h"
4
8typedef struct tkqueue
9{
10 unsigned int length;
12 unsigned int _size;
Queue of tokens.
Definition tkqueue.h:9
token_t ** data
Pointer to queue data with allocated space to fit _size items.
Definition tkqueue.h:11
int _current
The index for the current item.
Definition tkqueue.h:13
unsigned int length
The current number of items on the queue.
Definition tkqueue.h:10
unsigned int _size
Current number of elements that fits on the queue.
Definition tkqueue.h:12
struct tkqueue tkqueue_t
Queue of tokens.
struct token token_t
Struct for a Mya token.