diff options
| author | Baitinq <[email protected]> | 2025-01-18 11:07:55 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-18 11:07:59 +0100 |
| commit | 1f167fb9c2a9a1dc58b0086c7c4018dbc33e2c48 (patch) | |
| tree | 568a945af85b68f0e65da5468e02b665dc90062a /src/tokenizer.zig | |
| parent | Lang: Start introducing support for function arguments (diff) | |
| download | interpreter-1f167fb9c2a9a1dc58b0086c7c4018dbc33e2c48.tar.gz interpreter-1f167fb9c2a9a1dc58b0086c7c4018dbc33e2c48.tar.bz2 interpreter-1f167fb9c2a9a1dc58b0086c7c4018dbc33e2c48.zip | |
Misc: Implement print function as "native" function
Diffstat (limited to 'src/tokenizer.zig')
| -rw-r--r-- | src/tokenizer.zig | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tokenizer.zig b/src/tokenizer.zig index b5634a2..c673f20 100644 --- a/src/tokenizer.zig +++ b/src/tokenizer.zig @@ -7,7 +7,6 @@ const TokenizerError = error{ pub const TokenType = enum { // Keywords LET, - PRINT, RETURN, ARROW, @@ -32,7 +31,6 @@ pub const TokenType = enum { pub const Token = union(TokenType) { LET: void, - PRINT: void, RETURN: void, ARROW: void, IDENTIFIER: []u8, @@ -78,7 +76,6 @@ pub const Tokenizer = struct { if (string.len == 0) return TokenizerError.TokenizingError; if (std.mem.eql(u8, string, "let")) return Token{ .LET = void{} }; - if (std.mem.eql(u8, string, "print")) return Token{ .PRINT = void{} }; if (std.mem.eql(u8, string, "return")) return Token{ .RETURN = void{} }; if (std.fmt.parseInt(i32, string, 10) catch null) |i| return Token{ .NUMBER = i }; |