(self, ins)
Parse FOR syntax.
Parse FOR syntax.
Parse FOR syntax .
def _parse_for(self, ins):
        """Parse FOR syntax."""
        # read variable
        yield self.parse_name(ins)
        ins.require_read((tk.O_EQ,))
        yield self.parse_expression(ins)
        ins.require_read((tk.TO,))
        yield self.parse_expression(ins)
        if ins.skip_blank_read_if((tk.STEP,)):
            yield self.parse_expression(ins)
        else:
            yield None
        ins.require_end()
def _parse_for ( self , ins ) : # read variable yield self . parse_name ( ins ) ins . require_read ( ( tk . O_EQ , ) ) yield self . parse_expression ( ins ) ins . require_read ( ( tk . TO , ) ) yield self . parse_expression ( ins ) if ins . skip_blank_read_if ( ( tk . STEP , ) ) : yield self . parse_expression ( ins ) else : yield None ins . require_end ( )