diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-01-21 19:34:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-01-21 19:34:49 +0530 |
| commit | e4db8ebdd6a36df0b3d76504d18d8f183fe46ba9 (patch) | |
| tree | 807071e55e97d8169158c896822cc57c023c9af1 /src/parser.ts | |
| parent | c9075367a178644d12a179919aa07616938b7315 (diff) | |
| download | css-everything-e4db8ebdd6a36df0b3d76504d18d8f183fe46ba9.tar.gz css-everything-e4db8ebdd6a36df0b3d76504d18d8f183fe46ba9.zip | |
feat: adds example for calculator
Diffstat (limited to '')
| -rw-r--r-- | src/parser.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.ts b/src/parser.ts index 81f7a9e..928fc00 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -116,7 +116,7 @@ const precedence = (op: BinOp) => _: () => -1, }) -const binOpWithFixitySwitchity = (op: BinOp, left: Expr, right: Expr) => +const binOpWithFixitySwitchity = (op: BinOp, left: Expr, right: Expr): Expr => match(right, { BinOp: binOp => { if (precedence(op) >= precedence(binOp.op)) { |
