https://github.com/bglgwyng/semantic-lang-gen

I wrote(tbh, just packaged) a Haskell library that generates TreeSitter bindings and the corresponding AST type definition from TreeSitter language definition. Writing parsers using a parser combinator is fun, of course. However, with TreeSitter, you can eat free lunches of language tooling.

0

If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/019598d9-fb54-78d6-82c8-13dff2c5696e on your instance and reply to it.