I'm still not sure what a compiler plugin is though, after reading the scarce discussion in the forum thread. Erlang's parse transform comes to my mind. Is it something similar?