(self)
return name.upper()
Read a variable name.
Read a variable name.
Read a variable name .
def read_name(self):
        """Read a variable name."""
        d = self.skip_blank_read()
        if not d or d not in LETTERS:
            # variable name must start with a letter
            self.seek(-len(d), 1)
            return b''
        name = b''
        while d and d in tk.NAME_CHARS:
            name += d
            d = self.read(1)
        # only the first 40 chars are relevant in GW-BASIC, rest is discarded
        name = name[:40]
        if d in tk.SIGILS:
            name += d
        else:
            self.seek(-len(d), 1)
        # names are not case sensitive
        return name.upper()
def read_name ( self ) : d = self . skip_blank_read ( ) if not d or d not in LETTERS : # variable name must start with a letter self . seek ( - len ( d ) , 1 ) return b'' name = b'' while d and d in tk . NAME_CHARS : name += d d = self . read ( 1 ) # only the first 40 chars are relevant in GW-BASIC, rest is discarded name = name [ : 40 ] if d in tk . SIGILS : name += d else : self . seek ( - len ( d ) , 1 ) # names are not case sensitive return name . upper ( )