Parser, compiler, and runtime library for Qstructs