More binary operators

This commit is contained in:
2026-04-14 05:07:45 +02:00
parent 7b8010abbb
commit b2fa1e24e1
4 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ field_px = { "." ~ identifier }
call_px = { "(" ~ (expr ~ ("," ~ expr)*)? ~ ")" }
index_px = { "[" ~ expr ~ "]" }
binary_px = { bin_op ~ expr }
bin_op = { "+" | "-" | "*" | "/" | "%" }
bin_op = { "+" | "-" | "*" | "/" | "%" | "==" | "!=" | "<" | ">" | "<=" | ">=" }
expr = {
primary ~ postfix*