Show HN: I built a parser and lexer generator for Go

4 dgwelder 0 7/2/2025, 4:07:48 PM dcaiafa.github.io ↗
Lox is a parser and lexer generator for Go. Heavily inspired on ANTLR on the surface (combined parser and lexer, action code separated from grammar), but more similar to yacc on the internals (LR(1), dependency-free parser). I'm especially proud of the type-safe Go action generation where the reduce-artifact's Go type is determined by the user-action's return type, and then used to match and verify its use in other productions.

Comments (0)

No comments yet