Compiler can compile simple nested expressions and function calls.
The generated code can be called from C, and values can be passed between.
diff --git a/src/lisp/main.c b/src/lisp/main.c
index a83faab..1bda5f1 100644
--- a/src/lisp/main.c
+++ b/src/lisp/main.c
@@ -1,4 +1,5 @@
#include "lisp.h"
+#include "compiler.h"
int main (int argc, char **argv)
{
@@ -13,8 +14,13 @@
while ( read1 (is, &val) )
{
- printval (val, 0);
+// printval (val, 0);
+ compile (val);
}
+ /* printf ("COMPILING\n"); */
+
+ return 0;
+
del_stristream (is);
}