Add store into abstract machine struct
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
#define AM_H
|
||||
|
||||
#include "expr.h"
|
||||
#include "store.h"
|
||||
|
||||
#define AM_STACK_SIZE 128U
|
||||
|
||||
typedef struct am {
|
||||
expr_t *argl, *env, *expr, *val;
|
||||
expr_t **sp, *stack[AM_STACK_SIZE];
|
||||
store_t store;
|
||||
} am_t;
|
||||
|
||||
void am_init(am_t *am);
|
||||
|
||||
Reference in New Issue
Block a user