From ab3e064c6f90ec94daad99b5a4c56e0abbcc79bb Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 9 Apr 2022 08:22:31 -0300 Subject: Add more type rules and numeric type coercion --- 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 b987b34..3974281 100644 --- a/src/errors.c +++ b/src/errors.c @@ -22,6 +22,8 @@ static const char* error_msgs[] = { [ERR_WRONG_RET_TYPE] = "error: return type don't match type signature", [ERR_WRONG_COND_TYPE] = "error: conditional expression is not boolean", [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", + [ERR_WRONG_TYPE_NUM] = "error: non numeric argument types", + [ERR_WRONG_TYPE_BOOL] = "error: non bool argument types", }; static Error current_error = {.value = ERR_OK}; -- cgit v1.2.1