From c44b5ef6c32330a16380dd1832a9aca6d5ac668b Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 21 Jul 2024 14:55:04 +0200 Subject: [PATCH] Add missing operators --- src/grammar.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grammar.pest b/src/grammar.pest index db36c39..6f428fc 100644 --- a/src/grammar.pest +++ b/src/grammar.pest @@ -8,7 +8,7 @@ infix_expr = { #lhs = term ~ operator ~ #rhs = expr } -operator = { "+" | "-" | "*" | "/" | "&&" | "||" } +operator = { "+" | "-" | "*" | "/" | "&&" | "||" | "<" | ">" | "==" | "!=" } ident = @{ ALPHABETIC ~ (ALPHABETIC | NUMBER | "_")* | quoted_indent } quoted_indent = _{ "`" ~ (!"`" ~ ANY)+ ~ "`" }