summary refs log tree commit diff
path: root/src/tokenizer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.zig')
-rw-r--r--src/tokenizer.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tokenizer.zig b/src/tokenizer.zig
index 6765ea9..d137763 100644
--- a/src/tokenizer.zig
+++ b/src/tokenizer.zig
@@ -22,6 +22,7 @@ pub const TokenType = enum {
     EQUALS,
     PLUS,
     MINUS,
+    NOT,
 
     // Punctuation
     SEMICOLON,
@@ -43,6 +44,7 @@ pub const Token = union(TokenType) {
     EQUALS: void,
     PLUS: void,
     MINUS: void,
+    NOT: void,
     SEMICOLON: void,
     COMMA: void,
     LPAREN: void,
@@ -79,6 +81,7 @@ pub const Tokenizer = struct {
         if (c == '=') return Token{ .EQUALS = void{} };
         if (c == '+') return Token{ .PLUS = void{} };
         if (c == '-') return Token{ .MINUS = void{} };
+        if (c == '!') return Token{ .NOT = void{} };
 
         const string = self.consume_string();
         if (string.len == 0) return TokenizerError.TokenizingError;