From b494c47a262433f14d5885562d90081376bf0c69 Mon Sep 17 00:00:00 2001 From: Drew Youngwerth Date: Thu, 12 Sep 2024 18:09:11 -0700 Subject: [PATCH] Add ^ operator --- src/parser/grammar.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/grammar.ts b/src/parser/grammar.ts index f14fbf2..e29361d 100644 --- a/src/parser/grammar.ts +++ b/src/parser/grammar.ts @@ -51,6 +51,7 @@ export const infixOps: OpMap = new Map([ ["-", 1], ["*", 2], ["/", 2], + ["^", 3], ["and", 0], ["or", 0], ["xor", 0],