diff options
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/errors.c b/src/errors.c index e69e4f9..b93b462 100644 --- a/src/errors.c +++ b/src/errors.c | |||
@@ -8,6 +8,13 @@ static const char* error_msgs[] = { | |||
8 | [ERR_MALFORMED_NUMBER] = "error: malformed number token", | 8 | [ERR_MALFORMED_NUMBER] = "error: malformed number token", |
9 | [ERR_MALFORMED_EXPR] = "error: malformed expression", | 9 | [ERR_MALFORMED_EXPR] = "error: malformed expression", |
10 | [ERR_UNIMPLEMENTED] = "error: not implemented", | 10 | [ERR_UNIMPLEMENTED] = "error: not implemented", |
11 | [ERR_NOT_A_NUMBER] = "error: expected a number", | ||
12 | [ERR_NOT_A_SYMBOL] = "error: expected a symbol", | ||
13 | [ERR_NOT_A_STRING] = "error: expected a string", | ||
14 | [ERR_NOT_A_TYPE] = "error: expected a type", | ||
15 | [ERR_NOT_A_BOOL] = "error: expected a bool", | ||
16 | [ERR_NOT_A_LPAREN] = "error: expected opening parentheses (lparen)", | ||
17 | [ERR_NOT_A_RPAREN] = "error: expected closing parentheses (rparen)", | ||
11 | }; | 18 | }; |
12 | 19 | ||
13 | static Error current_error = {.value = ERR_OK}; | 20 | static Error current_error = {.value = ERR_OK}; |