pistack.h
Go to the documentation of this file.
1 #ifndef PI_STACK
2 #define PI_STACK
3 #include "picell.h"
4 
5 void stack_push(cell *c);
6 cell *stack_pop();
7 void empty_stack();
8 void stack_car(size_t stack_base, unsigned char nargs);
9 void stack_cdr(size_t stack_base, unsigned char nargs);
10 void stack_list(size_t stack_base, unsigned char nargs);
11 void stack_cons(size_t stack_base, unsigned char nargs);
12 void stack_atom(size_t stack_base, unsigned char nargs);
13 void stack_eq(size_t stack_base, unsigned char nargs);
14 void stack_addition(size_t stack_base, unsigned char nargs);
15 
16 cell *asm_call_with_stack_base(cell *args, cell *env, size_t stack_base);
17 
18 #endif
void stack_car(size_t stack_base, unsigned char nargs)
Definition: pistack.c:19
void stack_list(size_t stack_base, unsigned char nargs)
Definition: pistack.c:43
void empty_stack()
Definition: pistack.c:17
void stack_eq(size_t stack_base, unsigned char nargs)
Definition: pistack.c:71
cell * stack_pop()
Definition: pistack.c:11
cell * env(cell *arg)
Definition: pibuiltin.c:907
Basic Lisp entity.
Definition: picell.h:44
void stack_push(cell *c)
Definition: pistack.c:6
cell * asm_call_with_stack_base(cell *args, cell *env, size_t stack_base)
Definition: pistack.c:89
void stack_addition(size_t stack_base, unsigned char nargs)
Definition: pistack.c:78
void stack_cons(size_t stack_base, unsigned char nargs)
Definition: pistack.c:60
void stack_cdr(size_t stack_base, unsigned char nargs)
Definition: pistack.c:31
void stack_atom(size_t stack_base, unsigned char nargs)
Definition: pistack.c:65