7 ms·
Yes, Nim macros can fiddle with the AST: https://nim-lang.org/docs/macros.html https://nim-lang.org/docs/macros.html You can also see another (I think) neat ex
by supakeen 2y ago
Yes, Nim macros can fiddle with the AST: https://nim-lang.org/docs/macros.html https://nim-lang.org/docs/macros.html
You can also see another (I think) neat example in `npeg`: https://github.com/zevv/npeg?tab=readme-ov-file#quickstart https://github.com/zevv/npeg?tab=readme-ov-file#quickstart