Not sure.
This commit is contained in:
parent
9a9e5cd3e0
commit
1f2bca5028
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user