From ab23395b1fc88bbc63bef88de3477cc316857ace Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 14 Oct 2021 10:29:55 +0200 Subject: Add initial lambda implementation --- src/bootstrap/errors.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bootstrap/errors.c') diff --git a/src/bootstrap/errors.c b/src/bootstrap/errors.c index 61ea902..c1d2879 100644 --- a/src/bootstrap/errors.c +++ b/src/bootstrap/errors.c @@ -16,6 +16,7 @@ typedef enum ErrorValue { ERR_SYMBOL_NOT_FOUND, ERR_OBJ_NOT_CALLABLE, ERR_NOT_ENOUGH_ARGS, + ERR_TOO_MANY_ARGS, ERR_WRONG_ARG_TYPE, ERR_DIVISION_BY_ZERO, } ErrorValue; @@ -39,6 +40,7 @@ static const char* error_msgs[] = { [ERR_SYMBOL_NOT_FOUND] = "error: symbol not found", [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable", [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments", + [ERR_TOO_MANY_ARGS] = "error: too many arguments", [ERR_WRONG_ARG_TYPE] = "error: wrong argument type", [ERR_DIVISION_BY_ZERO] = "error: division by zero", }; -- cgit v1.2.1