(self, args)
ON GOTO/GOSUB: calculated jump.
ON GOTO/GOSUB: calculated jump.
ON GOTO / GOSUB : calculated jump .
def on_jump_(self, args):
        """ON GOTO/GOSUB: calculated jump."""
        onvar = values.to_int(next(args))
        error.range_check(0, 255, onvar)
        jump_type = next(args)
        # only parse jumps (and errors!) up to our choice
        i = -1
        for i, jumpnum in enumerate(args):
            if i == onvar-1:
                # we counted the right number of commas, then didn't find a line number
                if jumpnum is None:
                    raise error.BASICError(error.STX)
                if jump_type == tk.GOTO:
                    self.jump(jumpnum)
                elif jump_type == tk.GOSUB:
                    self.jump_sub(jumpnum)
                return
def on_jump_ ( self , args ) : onvar = values . to_int ( next ( args ) ) error . range_check ( 0 , 255 , onvar ) jump_type = next ( args ) # only parse jumps (and errors!) up to our choice i = - 1 for i , jumpnum in enumerate ( args ) : if i == onvar - 1 : # we counted the right number of commas, then didn't find a line number if jumpnum is None : raise error . BASICError ( error . STX ) if jump_type == tk . GOTO : self . jump ( jumpnum ) elif jump_type == tk . GOSUB : self . jump_sub ( jumpnum ) return