diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 19:11:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 19:11:17 -0400 |
| commit | 247043eae0ad88b1833d6a64e7ded130605dd83a (patch) | |
| tree | c7e6334ffd9aa71c9b5de7f8f23fc492f823f0c4 /src/parse | |
| parent | e927a088be671a003b8e4816a4a963243c0b61aa (diff) | |
Better support for binops in formatter
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/binops.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/parse/binops.c b/src/parse/binops.c index a6ac43d2..80bd7dd5 100644 --- a/src/parse/binops.c +++ b/src/parse/binops.c @@ -9,33 +9,6 @@ #include "suffixes.h" #include "utils.h" -int op_tightness[] = { - [Power] = 9, - [Multiply] = 8, - [Divide] = 8, - [Mod] = 8, - [Mod1] = 8, - [Plus] = 7, - [Minus] = 7, - [Concat] = 6, - [LeftShift] = 5, - [RightShift] = 5, - [UnsignedLeftShift] = 5, - [UnsignedRightShift] = 5, - [Min] = 4, - [Max] = 4, - [Equals] = 3, - [NotEquals] = 3, - [LessThan] = 2, - [LessThanOrEquals] = 2, - [GreaterThan] = 2, - [GreaterThanOrEquals] = 2, - [Compare] = 2, - [And] = 1, - [Or] = 1, - [Xor] = 1, -}; - ast_e match_binary_operator(const char **pos) { switch (**pos) { case '+': { |
