hello, is there any documentation on expression type identifier symbols?
except Metaprogramming · The Julia Language
:call
:kw
:macrocall
:quote
…
2 Likes
Excellent question. I’ve recently started macro programming and am quite lost on how to imagine the variations (and constraints/conventions) of the abstract syntax tree.
Hm. One thing one could do is write a @collectheads
macro that postwalks an expression tree and stores every head in a vector which it returns. Then run that on a large module. It will not be guaranteed to catch every head, but a lot of them.
There is some documentation in the developer section of the manual:
4 Likes