From 87b6f874776b253f77f4a1bf4c1844d99a8e544f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=BC=C3=9Flein?= Date: Thu, 2 Jul 2009 21:12:49 +0200 Subject: implement three-address-code objects instead of printf --- src/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/__init__.py') 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() -- cgit v1.2.3