aboutsummaryrefslogtreecommitdiff
path: root/src/z/parser/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-08-03 17:07:05 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-08-03 17:07:05 +0200
commit0bc6d195195d1e126b535554a4a4105468cd06d9 (patch)
tree6a3288e56bd306db499e597fc53762d05a7c3b82 /src/z/parser/root.zig
parent77642e5081b4ed2516dc08b3ef611c3c444ec6c5 (diff)
add tokenizer for whitespaces in js
Diffstat (limited to 'src/z/parser/root.zig')
-rw-r--r--src/z/parser/root.zig17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/z/parser/root.zig b/src/z/parser/root.zig
new file mode 100644
index 0000000..e0b67fb
--- /dev/null
+++ b/src/z/parser/root.zig
@@ -0,0 +1,17 @@
+const std = @import("std");
+
+const lexer = @import("lexer.zig");
+pub const Lexer = lexer.Lexer;
+pub const Token = lexer.Token;
+
+pub const js = @import("js/root.zig");
+
+pub fn Parser(TokenType: type) type {
+ return struct {
+ buffer: []const TokenType,
+ };
+}
+
+test {
+ _ = std.testing.refAllDecls(@This());
+}