qiskit/qasm/qasmparser.py
def p_statement(self, program):
        """
           statement : decl
                     | quantum_op ';'
                     | format ';'
                     | ignore
                     | quantum_op error
                     | format error
        """
        if len(program) > 2:
            if program[2] != ';':
                raise QasmError("Missing ';' at end of statement; "
                                + "received", str(program[2].value))
        program[0] = program[1]
def p_statement(self, program):
        """
           statement : decl
                     | quantum_op ';'
                     | format ';'
                     | ignore
                     | quantum_op error
                     | format error
        """
        if len(program) > 2:
            if program[2] != ';':
                raise QasmError("Missing ';' at end of statement; "
                                + "received", str(program[2].value))
        program[0] = program[1]
statement : decl
                     | quantum_op ';'
                     | format ';'
                     | ignore
                     | quantum_op error
                     | format error