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)