From 50ce0fb2a436eb5e765b2764c9468f648f18a4f8 Mon Sep 17 00:00:00 2001 From: Carlos Maniero Date: Mon, 8 May 2023 23:53:43 -0300 Subject: parser: parser boolean comparison expressions After this commit, this is a valid expression: 1 || 2 && 3 > 4 < 5 >= 6 <= 7 == 8 != 9 Signed-off-by: Carlos Maniero Signed-off-by: Johnny Richard --- src/ast.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index f91632c..f95aee2 100644 --- a/src/ast.h +++ b/src/ast.h @@ -57,6 +57,14 @@ typedef enum ast_binary_operation_kind_t AST_BINOP_SUBTRACTION, AST_BINOP_MULTIPLICATION, AST_BINOP_DIVISION, + AST_BINOP_EQUAL, + AST_BINOP_NOT_EQUAL, + AST_BINOP_AND, + AST_BINOP_OR, + AST_BINOP_GT, + AST_BINOP_LT, + AST_BINOP_LT_EQUAL, + AST_BINOP_GT_EQUAL, AST_BINOP_N } ast_binary_operation_kind_t; -- cgit v1.2.3