From 8186228baa8a4e646e2f11c0dbbf6a023079f8eb Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 6 Apr 2022 22:02:55 -0300 Subject: Add initial implementation of symbol checking --- 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 b93b462..2781bf5 100644 --- a/src/errors.c +++ b/src/errors.c @@ -15,6 +15,8 @@ static const char* error_msgs[] = { [ERR_NOT_A_BOOL] = "error: expected a bool", [ERR_NOT_A_LPAREN] = "error: expected opening parentheses (lparen)", [ERR_NOT_A_RPAREN] = "error: expected closing parentheses (rparen)", + [ERR_SYMBOL_REDEF] = "error: symbol redefinition", + [ERR_UNKNOWN_SYMBOL] = "error: unknown symbol", }; static Error current_error = {.value = ERR_OK}; -- cgit v1.2.1