Implement +, * and - primitives
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
#define AM_STACK_SIZE 128U
|
||||
|
||||
typedef struct {
|
||||
expr_t *env, *expr, *val;
|
||||
typedef struct am {
|
||||
expr_t *argl, *env, *expr, *val;
|
||||
expr_t **sp, *stack[AM_STACK_SIZE];
|
||||
} am_t;
|
||||
|
||||
|
||||
10
lib/include/prim.h
Normal file
10
lib/include/prim.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef PRIM_H
|
||||
#define PRIM_H
|
||||
|
||||
#include "am.h"
|
||||
#include "expr.h"
|
||||
#include "store.h"
|
||||
|
||||
void prim_load(am_t *am, store_t *store);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user