diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-07-06 03:33:04 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-07-06 03:49:03 +0200 |
commit | d3c95ef09fd493241273d6e63aca31d703c2503c (patch) | |
tree | 94dc719ed4eb4a3bc67c35b19bca69916b56fc32 /src/lexer.h | |
parent | b0b7d209fa978ff4a6b9c8cc5a8e4a3207cdd63f (diff) |
Implement booleans
Diffstat (limited to 'src/lexer.h')
-rw-r--r-- | src/lexer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lexer.h b/src/lexer.h index b62cc17..1ecafde 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -37,10 +37,12 @@ enum { LEXSTAR = '*', LEXTILDE = '~', - /* We keep these exactly 2 away from each other, because ‘<’ and ‘>’ are 2 - away from each other in ASCII. This gives us a simple mapping from some - token T to the doubled equivalent by doing T += 193. */ + LEXBANGEQ = UINT8_MAX - 3, /* Not equals */ + + /* This gives us a simple mapping from some token T to the doubled + equivalent by doing T += 193. */ LEXLANGL_DBL = UINT8_MAX - 2, /* << */ + LEXEQ_DBL = UINT8_MAX - 1, /* == */ LEXRANGL_DBL = UINT8_MAX - 0, /* >> */ }; |