(self, ins)
Parse PLAY (music) syntax.
Parse PLAY (music) syntax.
Parse PLAY ( music ) syntax .
def _parse_play(self, ins):
        """Parse PLAY (music) syntax."""
        if self._syntax in ('pcjr', 'tandy'):
            for _ in range(3):
                last = self.parse_expression(ins, allow_empty=True)
                yield last
                if not ins.skip_blank_read_if((b',',)):
                    break
            else:
                raise error.BASICError(error.STX)
            if last is None:
                raise error.BASICError(error.MISSING_OPERAND)
            ins.require_end()
        else:
            yield self.parse_expression(ins, allow_empty=True)
            ins.require_end(err=error.IFC)
def _parse_play ( self , ins ) : if self . _syntax in ( 'pcjr' , 'tandy' ) : for _ in range ( 3 ) : last = self . parse_expression ( ins , allow_empty = True ) yield last if not ins . skip_blank_read_if ( ( b',' , ) ) : break else : raise error . BASICError ( error . STX ) if last is None : raise error . BASICError ( error . MISSING_OPERAND ) ins . require_end ( ) else : yield self . parse_expression ( ins , allow_empty = True ) ins . require_end ( err = error . IFC )