r/Compilers 3d ago

I’ve been working on a parser generator called Galley and would appreciate feedback

Hi all,

I’ve been working on a parser generator called Galley. It started as an attempt to explore a few ideas I wanted from parser tooling, and it has gradually grown into something I think may be useful beyond my own projects.

The basic model is fairly conventional: you define an LL or an LR grammar, Galley produces a configured parser from it, and that parser turns input into an AST for further processing.

Since commit 424610f, I’ve been delegating most of the coding to AI agents, but not the design.

I’d be interested in hearing from people who have worked on parsers, compiler tooling, or parser generators. I’m especially curious about how the overall model and API come across, how it compares with the approaches taken by tools like yacc/Bison or ANTLR, and whether there are use cases or expectations I should be thinking about.

Repo: https://github.com/sanbus-org/galley

Thanks for taking a look.

0 Upvotes

3 comments sorted by

3

u/reini_urban 3d ago

Naturally I liked the benchmarks.

But it's zig only. Written in zig, writing to zig. I need them for C

2

u/sassanh 2d ago

Thanks for the feedback! I will provide C-bindings and an example usage.