summaryrefslogtreecommitdiff
path: root/lisp.c
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 14:53:26 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 14:53:26 +0100
commit20b1cea7a74a4feb759155eedbb6299bd891a325 (patch)
tree2cf15c07d2284fff2d0d3cbd2fff55ce92345e20 /lisp.c
parent4f025b96cfe6bc121ea9b37eb26d8814dd838647 (diff)
add tests
Diffstat (limited to 'lisp.c')
-rw-r--r--lisp.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lisp.c b/lisp.c
index b195352..8b29423 100644
--- a/lisp.c
+++ b/lisp.c
@@ -175,21 +175,3 @@ value *eval_pair(env *e, value *v) {
}
return v;
}
-
-env *global_env = NULL;
-
-int main(void) {
- // init global env
- global_env = env_create(NULL);
- // START REPL
- char* line;
- while ((line = readline("λ > ")) != NULL) {
- if (*line) {
- add_history(line);
- }
- yy_scan_string(line);
- yyparse();
- free(line);
- }
- return 0;
-}