From 233dd92768a54060df9096558aa58c1f598cce7d Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 8 Apr 2022 18:49:40 -0300 Subject: Add rudimentary type checking --- src/errors.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/errors.h') diff --git a/src/errors.h b/src/errors.h index eb83e52..a84305b 100644 --- a/src/errors.h +++ b/src/errors.h @@ -25,6 +25,11 @@ typedef enum ErrorValue { ERR_NOT_A_RPAREN, ERR_SYMBOL_REDEF, ERR_UNKNOWN_SYMBOL, + ERR_TYPE_REDEF, + ERR_UNKNOWN_TYPE, + ERR_WRONG_RET_TYPE, + ERR_WRONG_COND_TYPE, + ERR_WRONG_TYPE_T_F, ERR_OK, } ErrorValue; -- cgit v1.2.1