Implement +, * and - primitives

This commit is contained in:
cdo committed 2025-08-10 15:08:34 +01:00
1 parent 472a682757
commit b20a6749f7
7 files changed
+238 -2

No files matched your search

+2 -2
View File
@@ -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
View 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