From dcd3192e50d7b4ea333ecf57a7e8b325af145547 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 18 Apr 2022 15:51:53 -0300 Subject: Add a more rich symbol table value and typecheck funcall args --- src/errors.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/errors.c') diff --git a/src/errors.c b/src/errors.c index e2dee00..6a69064 100644 --- a/src/errors.c +++ b/src/errors.c @@ -24,6 +24,8 @@ static const char* error_msgs[] = { [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", [ERR_WRONG_TYPE_NUM] = "error: non numeric argument types", [ERR_WRONG_TYPE_BOOL] = "error: non bool argument types", + [ERR_WRONG_TYPE_FUN] = "error: not a function", + [ERR_BAD_ARGS] = "error: arguments don't match expected types", [ERR_TYPE_MISMATCH] = "error: type mismatch", }; -- cgit v1.2.1