schema: rewrite parser with gocc #1

Merged
maemachinebroke merged 3 commits from gocc into main 2026-01-28 13:02:52 +09:00

Use gocc and its format for BNF grammars to generate a lexer and parser, instead of using a hand-written one. Should we want to make changes to the syntax of the schema, it can trivially be done by modifying the azschema.bnf file and running go generate. Note that to do so gocc must be installed.

Use [gocc](https://github.com/goccmack/gocc/tree/master) and its format for BNF grammars to generate a lexer and parser, instead of using a hand-written one. Should we want to make changes to the syntax of the schema, it can trivially be done by modifying the `azschema.bnf` file and running `go generate`. Note that to do so `gocc` must be installed.
maemachinebroke added 3 commits 2026-01-28 13:02:40 +09:00
maemachinebroke merged commit 11fcbeb31a into main 2026-01-28 13:02:52 +09:00
maemachinebroke deleted branch gocc 2026-01-28 13:02:52 +09:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: maemachinebroke/azalea#1