summaryrefslogtreecommitdiffstats
path: root/src/__init__.py
diff options
context:
space:
mode:
authorAndreas Nüßlein <nutz@unfoog.de>2009-07-02 21:12:49 +0200
committerBenedikt Böhm <bb@xnull.de>2009-07-02 21:12:49 +0200
commit87b6f874776b253f77f4a1bf4c1844d99a8e544f (patch)
tree533f15f399da8969f044885851fc97027533d07a /src/__init__.py
parent8c9fb246794f7cb94689c348f104b29433416f4e (diff)
downloadswppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.tar.gz
swppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.tar.xz
swppy-87b6f874776b253f77f4a1bf4c1844d99a8e544f.zip
implement three-address-code objects instead of printf
Diffstat (limited to 'src/__init__.py')
-rw-r--r--src/__init__.py4
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()