Macros-like code processing and generator engine