From 7343c3b9d94603fede3ff7db1f3a47d0e76a49e7 Mon Sep 17 00:00:00 2001 From: Jacob Signorovitch Date: Fri, 17 Jan 2025 11:49:51 -0500 Subject: [PATCH] Fixed some function parsing. --- src/exec.c | 1 + src/grammar.y | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exec.c b/src/exec.c index 38b1831..d20d32a 100644 --- a/src/exec.c +++ b/src/exec.c @@ -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); } } diff --git a/src/grammar.y b/src/grammar.y index 4b2ae93..cc46167 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -61,7 +61,7 @@ exp: | LGROUP exp RGROUP { $$ = $2; } // Variable reference. - | WORD + //| WORD // Function call. // name(thing, thing)