diff options
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/errors.c b/src/errors.c index 2781bf5..b987b34 100644 --- a/src/errors.c +++ b/src/errors.c | |||
@@ -17,6 +17,11 @@ static const char* error_msgs[] = { | |||
17 | [ERR_NOT_A_RPAREN] = "error: expected closing parentheses (rparen)", | 17 | [ERR_NOT_A_RPAREN] = "error: expected closing parentheses (rparen)", |
18 | [ERR_SYMBOL_REDEF] = "error: symbol redefinition", | 18 | [ERR_SYMBOL_REDEF] = "error: symbol redefinition", |
19 | [ERR_UNKNOWN_SYMBOL] = "error: unknown symbol", | 19 | [ERR_UNKNOWN_SYMBOL] = "error: unknown symbol", |
20 | [ERR_TYPE_REDEF] = "error: type redefinition", | ||
21 | [ERR_UNKNOWN_TYPE] = "error: unknown type", | ||
22 | [ERR_WRONG_RET_TYPE] = "error: return type don't match type signature", | ||
23 | [ERR_WRONG_COND_TYPE] = "error: conditional expression is not boolean", | ||
24 | [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", | ||
20 | }; | 25 | }; |
21 | 26 | ||
22 | static Error current_error = {.value = ERR_OK}; | 27 | static Error current_error = {.value = ERR_OK}; |