summaryrefslogtreecommitdiff
path: root/lisp.c
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-03-30 19:22:31 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-03-30 19:22:31 +0000
commitff0eee931d3918eedf1c125c58328e54b47a4994 (patch)
treea61c94e89ea76ef68c55a9fe387be0a1b56e8e3e /lisp.c
init
Diffstat (limited to 'lisp.c')
-rw-r--r--lisp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp.c b/lisp.c
new file mode 100644
index 0000000..04c894d
--- /dev/null
+++ b/lisp.c
@@ -0,0 +1,13 @@
+#include "types.h"
+#include "y.tab.h"
+
+extern ast *ass[MAXASS];
+extern int asscount;
+
+values *eval(ast *a);
+
+int main() {
+ yyparse();
+ for (int i = 0; i < asscount; i++)
+ eval(ass[i]);
+}