summaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorCarlos Maniero <carlos@maniero.me>2023-05-08 23:53:43 -0300
committerJohnny Richard <johnny@johnnyrichard.com>2023-05-09 22:39:58 +0200
commit50ce0fb2a436eb5e765b2764c9468f648f18a4f8 (patch)
tree02756d7e728a8a2280d61d1e702f5740b424de6c /src/ast.h
parent35425aa5837543e4cc3fc82266dc2ae429cb2779 (diff)
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 <carlos@maniero.me> Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h8
1 files changed, 8 insertions, 0 deletions
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;