diff options
author | Bad Diode <bd@badd10de.dev> | 2022-04-06 22:02:55 -0300 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-04-06 22:02:55 -0300 |
commit | 8186228baa8a4e646e2f11c0dbbf6a023079f8eb (patch) | |
tree | 56387d7a0fc52b2b9691c6d01202b2fb6338b77a /src/errors.c | |
parent | 725ba80c048069d15b2668ad0fa0e123819ec410 (diff) | |
download | bdl-8186228baa8a4e646e2f11c0dbbf6a023079f8eb.tar.gz bdl-8186228baa8a4e646e2f11c0dbbf6a023079f8eb.zip |
Add initial implementation of symbol checking
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 2 |
1 files changed, 2 insertions, 0 deletions
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[] = { | |||
15 | [ERR_NOT_A_BOOL] = "error: expected a bool", | 15 | [ERR_NOT_A_BOOL] = "error: expected a bool", |
16 | [ERR_NOT_A_LPAREN] = "error: expected opening parentheses (lparen)", | 16 | [ERR_NOT_A_LPAREN] = "error: expected opening parentheses (lparen)", |
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", | ||
19 | [ERR_UNKNOWN_SYMBOL] = "error: unknown symbol", | ||
18 | }; | 20 | }; |
19 | 21 | ||
20 | static Error current_error = {.value = ERR_OK}; | 22 | static Error current_error = {.value = ERR_OK}; |