To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 8831585b authored by Stefan Marr's avatar Stefan Marr
Browse files

Added get_interpreter and usage printing

- universe should be more or less complete now
Signed-off-by: default avatarStefan Marr <>
parent 880adac3
...@@ -71,6 +71,9 @@ class Universe(object): ...@@ -71,6 +71,9 @@ class Universe(object):
def metaclassClass(self): def metaclassClass(self):
return self._metaclassClass return self._metaclassClass
def get_interpreter(self):
return self._interpreter
def execute_method(self, class_name, selector): def execute_method(self, class_name, selector):
self._initialize_object_system() self._initialize_object_system()
...@@ -181,6 +184,18 @@ class Universe(object): ...@@ -181,6 +184,18 @@ class Universe(object):
(file_name, ext) = os.path.splitext(file_name) (file_name, ext) = os.path.splitext(file_name)
return (path, file_name, ext[1:]) return (path, file_name, ext[1:])
def _print_usage_and_exit(self):
# Print the usage
self.std_println("Usage: som [-options] [args...] ")
self.std_println(" ")
self.std_println("where options include: ")
self.std_println(" -cp <directories separated by " + os.pathsep + ">")
self.std_println(" set search path for application classes")
self.std_println(" -d enable disassembling")
# Exit
def _initialize_object_system(self): def _initialize_object_system(self):
# Allocate the nil object # Allocate the nil object
self._nilObject = Object(None) self._nilObject = Object(None)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment