Added preliminary version of def statement handling to qasm parser