Fixed some function parsing.

This commit is contained in:
Jacob Signorovitch 2025-01-17 11:49:51 -05:00
parent 9e8410d4cf
commit 7343c3b9d9
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ ASTNumData exec_exp(AST* ast) {
case AST_TYPE_CALL: return exec_call(ast);
case AST_TYPE_NUM: return *(ASTNumData*)ast->data;
default: printf("what\n");
exit(1);
}
}

View File

@ -61,7 +61,7 @@ exp:
| LGROUP exp RGROUP { $$ = $2; }
// Variable reference.
| WORD
//| WORD
// Function call.
// name(thing, thing)