My ideas on the matter are
on the Wiki. I intend on using new parser magic to implement this dynamically if no one handles that by the time I finish it.
I am not volunteering you, Sorlok, but unless I'm mistaken, you already know everything you need to know to implement that in the current compiler.