Implement +, * and - primitives

This commit is contained in:
2025-08-10 14:52:38 +01:00
parent 472a682757
commit b20a6749f7
7 changed files with 238 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
#include "env.h"
#include "prim.h"
#include <assert.h>
#include <string.h>
@@ -50,6 +52,7 @@ static expr_t **lookup(am_t *am, bool *found)
void env_init(am_t *am, store_t *store)
{
am->env = expr_empty_list(store);
prim_load(am, store);
}
void env_fetch(am_t *am)