From a7b991bfd4229bbefc93ff652cc12aa40613d8cb Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 29 Dec 2012 19:51:32 +0200 Subject: Can generate compile commands. --- interpreter.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'interpreter.py') 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.') -- cgit v1.1