From a4e8599e8d0fde881cd4e6e3031e5b52550e878e Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 6 Aug 2024 22:20:53 +0100 Subject: remove ast and peg parser --- com.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'com.c') diff --git a/com.c b/com.c index 57e600c..6d701d9 100644 --- a/com.c +++ b/com.c @@ -6,7 +6,6 @@ #include "com.h" #include "mem.h" #include "chunk.h" -#include "ast.h" #include "util.h" #include "prs.h" #include "lib.h" @@ -697,7 +696,6 @@ int main(int argc, char **argv) { exit(1); } - fread(buf, 1, 8192, infile); buf[8192] = '\0'; ObjArr *top = read_exprs(S, buf); @@ -706,11 +704,6 @@ int main(int argc, char **argv) { println_val(VAL_OBJ(top)); cpl_body(&com, top, 0, 0); - - - // pcc_destroy(parser); - // compile_body(&com, top.as.list, 0, 0); - // astnode_free(&top); } -- cgit v1.2.3