Not sure.

This commit is contained in:
Jacob Signorovitch 2025-01-04 10:45:11 -05:00
parent 9a9e5cd3e0
commit 1f2bca5028

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <string.h>
#include "include/ast.h"
#include "include/dstr.h"
@ -18,6 +19,12 @@ extern int yyparse();
int main(int argc, char** argv) {
if (argc - 1 && strlen(argv[1]) > 0 && (inp = argv[1]) && !yyparse()) {
log_dbg("Parsed successfully!\n");
exec_print(exec_expr(root));
exit(0);
}
while (1) {
Dstr* ln = dstr_init();
char c;