diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-29 19:51:32 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-29 19:51:32 +0200 |
commit | a7b991bfd4229bbefc93ff652cc12aa40613d8cb (patch) | |
tree | b0d138d883f9c496bd5d3d1f3690502ed1659944 /interpreter.py | |
parent | e006116936841a2dc3515cab217c94ebbb14cf30 (diff) | |
download | meson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.zip meson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.tar.gz meson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.tar.bz2 |
Can generate compile commands.
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.') |