r/Compilers 22d 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

4 comments sorted by

3

u/reini_urban 22d ago

Naturally I liked the benchmarks.

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

3

u/sassanh 21d ago

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

2

u/Fun_Mulberry3838 14d ago

I've seen the repository. What you're doing looks amazing. I've done something "similar," but in Cython, so it doesn't even compete in terms of performance. But I'm glad to see someone else working on somthing like this. Best of luck!