diff options
author | Andreas Nüßlein <nutz@unfoog.de> | 2009-07-02 21:12:49 +0200 |
---|---|---|
committer | Benedikt Böhm <bb@xnull.de> | 2009-07-02 21:12:49 +0200 |
commit | 87b6f874776b253f77f4a1bf4c1844d99a8e544f (patch) | |
tree | 533f15f399da8969f044885851fc97027533d07a /src/__init__.py | |
parent | 8c9fb246794f7cb94689c348f104b29433416f4e (diff) | |
download | swppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.tar.gz swppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.tar.xz swppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.zip |
implement three-address-code objects instead of printf
Diffstat (limited to '')
-rw-r--r-- | src/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/__init__.py b/src/__init__.py index 89bcdc6..bbe2e28 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,12 +1,16 @@ from front.lexer import Lexer from front.parser import Parser from front.scope import Scope +from back.tac import TACList import sys def main(): ast = Parser(Lexer(sys.stdin.read())).parse() scope = Scope() ast.generate() + print scope + sys.stdout.write(repr(TACList())) + sys.stdout.flush() if __name__ == "__main__": main() |