Compiler for Qstructs