Automatic Language Bindings

from blog The Brain Dump, | ↗ original
I got caught up in a nice little rabbit-hole in the past few weeks after discovering a clang feature that I wasn’t aware of before: Automatically generating language bindings for the Sokol headers from an AST (Abstract Syntax Tree) dumped via clang. I’ve created a little proof-of-concept with Zig as target language (which admittedly is a bit of...