summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Nüßlein <nutz@unfoog.de>2009-05-15 23:40:27 +0200
committerAndreas Nüßlein <nutz@unfoog.de>2009-05-15 23:40:27 +0200
commit4960da6d71504d9639da2537ddb6f22b7ae64120 (patch)
tree8e5e9f67e456b1aa19e5735859c8b52467773468
parent6d2b0eeb5018013fb8ba6e8c2e31d637cc04f72c (diff)
downloadswppy-4960da6d71504d9639da2537ddb6f22b7ae64120.tar.gz
swppy-4960da6d71504d9639da2537ddb6f22b7ae64120.tar.xz
swppy-4960da6d71504d9639da2537ddb6f22b7ae64120.zip
rudimentaeres 3-adress-code-zeug
-rw-r--r--Classes.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Classes.py b/Classes.py
index c969395..f144e77 100644
--- a/Classes.py
+++ b/Classes.py
@@ -132,10 +132,14 @@ class ParseTreeNode:
def __init__(self, value):
self.value = value
+class ThreeAddressCodeToken:
-###############################
-class Lexer:
+class ThreeAddressCode:
+ codelist = []
-class Parser:
+ # returns code or -1 if end of list
+ getNextCode():
+ return someCode
+###############################