From aba7302e7e98fd7bca2056d8ad622d9ca81c495f Mon Sep 17 00:00:00 2001 From: Carlos Maniero Date: Mon, 8 May 2023 23:53:41 -0300 Subject: parser: Add the bool type This commit introduces a new type for booleans. There is no code generation for this type yet. The intention of this commit is to enable flow control in the near future. Signed-off-by: Carlos Maniero Reviewed-by: Johnny Richard --- src/lexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lexer.h') diff --git a/src/lexer.h b/src/lexer.h index dd442cc..899c0aa 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -59,6 +59,8 @@ typedef enum TOKEN_KEYWORD_RETURN, TOKEN_KEYWORD_FN, TOKEN_KEYWORD_LET, + TOKEN_TRUE, + TOKEN_FALSE, TOKEN_UNKNOWN } token_kind_t; -- cgit v1.2.3