diff options
Diffstat (limited to 'interpreter.py')
-rwxr-xr-x | interpreter.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interpreter.py b/interpreter.py index 7c8d129..eb8e17a 100755 --- a/interpreter.py +++ b/interpreter.py @@ -35,6 +35,12 @@ class Executable(InterpreterObject): def __init__(self, name, sources): self.name = name self.sources = sources + + def get_basename(self): + return self.name + + def get_sources(self): + return self.sources class Interpreter(): @@ -46,6 +52,9 @@ class Interpreter(): self.compilers = [] self.executables = {} + def get_executables(self): + return self.executables + def sanity_check_ast(self): if not isinstance(self.ast, nodes.CodeBlock): raise InvalidCode('AST is of invalid type. Possibly a bug in the parser.') |