def interpret(self, arguments): # Check for command line switches arguments = self.handle_arguments(arguments) # Initialize the known universe system_object = self._initialize_object_system() # Start the shell if no filename is given if len(arguments) == 0: shell = Shell(self) return shell.start() else: # Convert the arguments into an array arguments_array = self.new_array_with_strings(arguments) # Lookup the initialize invokable on the system class initialize = self.systemClass.lookup_invokable( self.symbol_for("initialize:")) return initialize.invoke(system_object, [arguments_array])
def interpret(self, arguments): # Check for command line switches arguments = self.handle_arguments(arguments) # Initialize the known universe system_object = self._initialize_object_system() # Start the shell if no filename is given if len(arguments) == 0: shell = Shell(self) return shell.start() else: # Convert the arguments into an array arguments_array = self.new_array_with_strings(arguments) # Lookup the initialize invokable on the system class initialize = self.systemClass.lookup_invokable( self.symbol_for("initialize:")) return initialize.invoke(system_object, [arguments_array], False)
def interpret(self, arguments): # Check for command line switches arguments = self.handle_arguments(arguments) # Initialize the known universe system_object = self._initialize_object_system() bootstrap_method = self._create_bootstrap_method() # Start the shell if no filename is given if len(arguments) == 0: shell = Shell(self, self._interpreter) shell.set_bootstrap_method(bootstrap_method) shell.start() return else: # Convert the arguments into an array arguments_array = self.new_array_with_strings(arguments) bootstrap_frame = self._create_bootstrap_frame(bootstrap_method, system_object, arguments_array) # Lookup the initialize invokable on the system class initialize = self._systemClass.lookup_invokable(self.symbol_for("initialize:")) self.start(bootstrap_frame, initialize)
def interpret(self, arguments): # Check for command line switches arguments = self.handle_arguments(arguments) # Initialize the known universe system_object = self._initialize_object_system() bootstrap_method = self._create_bootstrap_method() # Start the shell if no filename is given if len(arguments) == 0: shell = Shell(self, self._interpreter) shell.set_bootstrap_method(bootstrap_method) shell.start() return else: # Convert the arguments into an array arguments_array = self.new_array_with_strings(arguments) bootstrap_frame = self._create_bootstrap_frame(bootstrap_method, system_object, arguments_array) # Lookup the initialize invokable on the system class initialize = self.systemClass.lookup_invokable(self.symbol_for("initialize:")) return initialize.invoke(bootstrap_frame, self._interpreter)