diff options
author | Bad Diode <bd@badd10de.dev> | 2022-04-18 15:51:53 -0300 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-04-18 15:51:53 -0300 |
commit | dcd3192e50d7b4ea333ecf57a7e8b325af145547 (patch) | |
tree | f07b4adabcd9220be7846694a9e1cbfcbac7edfc /src/errors.c | |
parent | 891ea6836072a1201083669a8a212b03af0c2d5c (diff) | |
download | bdl-dcd3192e50d7b4ea333ecf57a7e8b325af145547.tar.gz bdl-dcd3192e50d7b4ea333ecf57a7e8b325af145547.zip |
Add a more rich symbol table value and typecheck funcall args
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 e2dee00..6a69064 100644 --- a/src/errors.c +++ b/src/errors.c | |||
@@ -24,6 +24,8 @@ static const char* error_msgs[] = { | |||
24 | [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", | 24 | [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", |
25 | [ERR_WRONG_TYPE_NUM] = "error: non numeric argument types", | 25 | [ERR_WRONG_TYPE_NUM] = "error: non numeric argument types", |
26 | [ERR_WRONG_TYPE_BOOL] = "error: non bool argument types", | 26 | [ERR_WRONG_TYPE_BOOL] = "error: non bool argument types", |
27 | [ERR_WRONG_TYPE_FUN] = "error: not a function", | ||
28 | [ERR_BAD_ARGS] = "error: arguments don't match expected types", | ||
27 | [ERR_TYPE_MISMATCH] = "error: type mismatch", | 29 | [ERR_TYPE_MISMATCH] = "error: type mismatch", |
28 | }; | 30 | }; |
29 | 31 | ||