(self)
Parse a string value in a macro-language string.
Parse a string value in a macro-language string.
Parse a string value in a macro - language string .
def parse_string(self):
        """Parse a string value in a macro-language string."""
        c = self.skip_blank()
        if len(c) == 0:
            raise error.BASICError(error.IFC)
        elif ord(c) > 8:
            sub = self._parse_variable()
            self.require_read((b';',), err=error.IFC)
            return values.pass_string(sub).to_str()
        else:
            # varptr$
            ptr = self.memory.get_value_for_varptrstr(self.read(3))
            return values.pass_string(ptr).to_str()
def parse_string ( self ) : c = self . skip_blank ( ) if len ( c ) == 0 : raise error . BASICError ( error . IFC ) elif ord ( c ) > 8 : sub = self . _parse_variable ( ) self . require_read ( ( b';' , ) , err = error . IFC ) return values . pass_string ( sub ) . to_str ( ) else : # varptr$ ptr = self . memory . get_value_for_varptrstr ( self . read ( 3 ) ) return values . pass_string ( ptr ) . to_str ( )