aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-04-24 15:10:14 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-04-24 15:10:14 +0200
commit9456f4e2b569b393d6c01784a4545b11b32e16ef (patch)
tree7b4eeab3d0dd4c273de025db19f6be52d9cd1f1d /src/main.zig
Implement grammar parser
This implements the grammar struct together with some other helpful structures like char-set and character. The grammar struct parses a grammar file and also generates the FIRST and FOLLOWS tables.
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
new file mode 100644
index 0000000..62877cb
--- /dev/null
+++ b/src/main.zig
@@ -0,0 +1,10 @@
+const std = @import("std");
+
+pub const grammar = @import("grammar.zig");
+
+pub fn main() !void {
+}
+
+test {
+ std.testing.refAllDecls(@This());
+}