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.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenizer.zig b/src/tokenizer.zig
index d137763..4e9d383 100644
--- a/src/tokenizer.zig
+++ b/src/tokenizer.zig
@@ -22,7 +22,7 @@ pub const TokenType = enum {
     EQUALS,
     PLUS,
     MINUS,
-    NOT,
+    BANG,
 
     // Punctuation
     SEMICOLON,
@@ -44,7 +44,7 @@ pub const Token = union(TokenType) {
     EQUALS: void,
     PLUS: void,
     MINUS: void,
-    NOT: void,
+    BANG: void,
     SEMICOLON: void,
     COMMA: void,
     LPAREN: void,
@@ -81,7 +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{} };
+        if (c == '!') return Token{ .BANG = void{} };
 
         const string = self.consume_string();
         if (string.len == 0) return TokenizerError.TokenizingError;