qiskit/qasm/qasmparser.py
def p_gate_body_0(self, program):
        """
           gate_body : '{' '}'
        """
        if program[2] != '}':
            raise QasmError("Missing '}' in gate definition; received'"
                            + str(program[2].value) + "'")
        program[0] = node.GateBody(None)
def p_gate_body_0(self, program):
        """
           gate_body : '{' '}'
        """
        if program[2] != '}':
            raise QasmError("Missing '}' in gate definition; received'"
                            + str(program[2].value) + "'")
        program[0] = node.GateBody(None)
def p_gate_body_0 ( self , program ) : if program [ 2 ] != '}' : raise QasmError ( "Missing '}' in gate definition; received'" + str ( program [ 2 ] . value ) + "'" ) program [ 0 ] = node . GateBody ( None )
gate_body : '{' '}'
gate_body : { }