diff options
author | Andreas Nüßlein <nutz@unfoog.de> | 2009-05-15 23:40:27 +0200 |
---|---|---|
committer | Andreas Nüßlein <nutz@unfoog.de> | 2009-05-15 23:40:27 +0200 |
commit | 4960da6d71504d9639da2537ddb6f22b7ae64120 (patch) | |
tree | 8e5e9f67e456b1aa19e5735859c8b52467773468 | |
parent | 6d2b0eeb5018013fb8ba6e8c2e31d637cc04f72c (diff) | |
download | swppy-4960da6d71504d9639da2537ddb6f22b7ae64120.tar.gz swppy-4960da6d71504d9639da2537ddb6f22b7ae64120.tar.xz swppy-4960da6d71504d9639da2537ddb6f22b7ae64120.zip |
rudimentaeres 3-adress-code-zeug
-rw-r--r-- | Classes.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 +############################### |