Zig seems to have arbitrary compile-time code evaluation, but not the kind of AST generation you see here[1]. Nim macros seem to be a closer analogue[2].
[1]: https://github.com/seanbaxter/circle/blob/master/gems/rpn.md...
[1]: https://github.com/seanbaxter/circle/blob/master/gems/rpn.md...