4 ms·
Another thing I wonder is if Zig's C interop is good enough to simply reuse Lemon. Basically - on the input side, write a Tokenizer in Zig and feed that into
by chubot 4y ago
Another thing I wonder is if Zig's C interop is good enough to simply reuse Lemon. Basically
- on the input side, write a Tokenizer in Zig and feed that into the generated state machine in C
- on the output side, consume Lemon's C data structures / function calls directly in Zig. This is probably the hard part as the grammar and semantic actions are very intertwined
That would be a cool demo, although honestly maybe not even less work