18 lines
243 B
C
18 lines
243 B
C
#ifndef AM_H
|
|
#define AM_H
|
|
|
|
#include "expr.h"
|
|
|
|
#define AM_STACK_SIZE 128U
|
|
|
|
typedef struct {
|
|
expr_t *env, *expr, *val;
|
|
expr_t **sp, *stack[AM_STACK_SIZE];
|
|
} am_t;
|
|
|
|
void am_init(am_t *am);
|
|
void am_push(am_t *am);
|
|
void am_pop(am_t *am);
|
|
|
|
#endif
|