From 9456f4e2b569b393d6c01784a4545b11b32e16ef Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 24 Apr 2025 15:10:14 +0200 Subject: 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. --- src/main.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main.zig (limited to 'src/main.zig') 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()); +} -- cgit v1.2.3-70-g09d2