Is Tree-sitter good enough?
blog.jez.io
blog.jez.io
- generating it requires nodejs, I would prefer to not depend on it to generate my c code parser
- there is a single person maintaining it, I am afraid for the project longevity
- binding for C# is not trivial
- forward declarations can't be easily expressed so you need to patch the generated c code with your own code there to be able to workout forward declarations (it's when you declare a class that you are going to use later, usually because class A can return B and B can return A)