|
libmya 0.1.0
Library to parse Mya language.
|


Go to the source code of this file.
Functions | |
| void | tkstack_init (tkstack_t *stack) |
| Initializes the given stack. | |
| void | tkstack_close (tkstack_t *stack) |
| Closes the given stack. | |
| void | tkstack_push (tkstack_t *stack, token_t *token) |
| Push a new value on the stack. | |
| token_t * | tkstack_pop (tkstack_t *stack) |
| Pop a value from the stack. | |
| token_t * | tkstack_peek (tkstack_t *stack) |
| Peeks the value on top of the stack without removing it. | |
| bool | tkstack_isempty (tkstack_t *stack) |
| Check if the given stack is empty. | |
| void tkstack_close | ( | tkstack_t * | stack | ) |
| void tkstack_init | ( | tkstack_t * | stack | ) |
Initializes the given stack.
| stack | The stack to be initialized. |
Definition at line 11 of file tkstack.c.
| bool tkstack_isempty | ( | tkstack_t * | stack | ) |
Peeks the value on top of the stack without removing it.
| stack | The stack to peek into. |
Definition at line 45 of file tkstack.c.
Pop a value from the stack.
| stack | The stack from where the value will be poped. |
| value | Pointer for where the poped value will be saved. |