summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-07-03 09:52:59 +0200
committerBenedikt Böhm <bb@xnull.de>2009-07-03 09:52:59 +0200
commitd06b1dfc51a263a12c00e00c81461b67fa11afe8 (patch)
tree47bec5f37ef2165f86302ff4a5e65b6ff4a67e35
parent4a38beb8137ecbe8b1cb31d0365cbb5f4307b785 (diff)
downloadswppy-d06b1dfc51a263a12c00e00c81461b67fa11afe8.tar.gz
swppy-d06b1dfc51a263a12c00e00c81461b67fa11afe8.tar.xz
swppy-d06b1dfc51a263a12c00e00c81461b67fa11afe8.zip
cleanup
-rwxr-xr-xsrc/main_test.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main_test.py b/src/main_test.py
deleted file mode 100755
index 8649a74..0000000
--- a/src/main_test.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/python
-
-import sys
-
-from front import ast
-#import SymbolTable
-from back import tac
-
-def main():
- mUn = ast.UnaryExpression("PLUS","a")
- mIf = ast.IfStatement(mUn,"true","false")
- mFunc1 = ast.Function("func1",["param1","param2"],mIf)
- mFunc2 = ast.Function("func2",["param0","param1"],mIf)
- mProg = ast.Program([mFunc1,mFunc2])
- Test()
-
-
-class Test:
- def __init__(self):
- x = tac.TacElem("PLUS",3,5)
- y = tac.TacElem("MINUS",8,3)
- z = tac.TacArray()
- z.append(x)
- z.append(y)
- z.createList()
-
-
-
-
-
-if __name__ == "__main__":
- sys.exit(main())