aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-29 12:58:25 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-29 12:58:25 +0200
commit8dbb8162f99efe0f35b99df6379c71336a575222 (patch)
treebbbee582e9ecc2de225ae343c6a4463602f61c3d /src/parser.h
parenta8a3f92984afbe4e02a427bfea468ebc2e146a5a (diff)
Implement bit shifting operations
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index 3cf4292..fdb1a79 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -84,6 +84,14 @@ enum {
/* Binary xor
‘lhs ~ rhs’ */
ASTBINXOR = '~',
+
+ /* Binary left shift
+ ‘lhs << rhs’ */
+ ASTBINSHL = UINT8_MAX - 2,
+
+ /* Binary right shift
+ ‘lhs >> rhs’ */
+ ASTBINSHR = UINT8_MAX - 0,
};
#define AST_EMPTY ((idx_t)-1)