qiskit/qasm/qasmparser.py
def p_gate_decl_1(self, program):
        """
           gate_decl : GATE id gate_scope '(' ')' bit_list gate_body
        """
        program[0] = node.Gate([program[2], program[6], program[7]])
        if program[2].name in self.external_functions:
            raise QasmError("GATE names cannot be reserved words. "
                            + "Received '" + program[2].name + "'")
        self.pop_scope()
        self.update_symtab(program[0])
def p_gate_decl_1(self, program):
        """
           gate_decl : GATE id gate_scope '(' ')' bit_list gate_body
        """
        program[0] = node.Gate([program[2], program[6], program[7]])
        if program[2].name in self.external_functions:
            raise QasmError("GATE names cannot be reserved words. "
                            + "Received '" + program[2].name + "'")
        self.pop_scope()
        self.update_symtab(program[0])
gate_decl : GATE id gate_scope '(' ')' bit_list gate_body