aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-28 15:20:32 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-28 15:20:32 +0200
commit545f8ebebba5f3e78351b0074948c08cbfd9f418 (patch)
tree293de851f8f72a70fb583cda091608cc56f8f9f2 /src/parser.h
parentb75cc76276216af71d7bc89c894187df726e4a71 (diff)
Do some more work to support modulus and parenthesis
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser.h b/src/parser.h
index 9cdf0c4..0a25a4c 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1,7 +1,6 @@
#ifndef ORYX_PARSER_H
#define ORYX_PARSER_H
-#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -74,12 +73,11 @@ enum {
‘lhs - rhs’ */
ASTBINDIV = '/',
- _AST_LAST_ENT,
+ /* Binary modulus
+ ‘lhs % rhs’ */
+ ASTBINMOD = '%',
};
-static_assert(_AST_LAST_ENT - 1 <= UINT8_MAX,
- "Too many AST tokens to fix in uint8_t");
-
#define AST_EMPTY ((idx_t)-1)
#define AST_SOA_BLKSZ (1 + sizeof(idx_t) + sizeof(pair_t))