diff python/asm.py @ 315:084cccaa5deb

Added console and screen
author Windel Bouwman
date Sat, 21 Dec 2013 10:03:01 +0100
parents be7f60545368
children e84047f29c78
line wrap: on
line diff
--- a/python/asm.py	Wed Dec 18 20:22:20 2013 +0100
+++ b/python/asm.py	Sat Dec 21 10:03:01 2013 +0100
@@ -58,16 +58,18 @@
 
 
 class Lexer:
-   def __init__(self, src):
-      self.tokens = tokenize(src)
-      self.curTok = self.tokens.__next__()
-   def eat(self):
-      t = self.curTok
-      self.curTok = self.tokens.__next__()
-      return t
-   @property
-   def Peak(self):
-      return self.curTok
+    def __init__(self, src):
+        self.tokens = tokenize(src)
+        self.curTok = self.tokens.__next__()
+
+    def eat(self):
+        t = self.curTok
+        self.curTok = self.tokens.__next__()
+        return t
+
+    @property
+    def Peak(self):
+        return self.curTok
 
 
 class Parser: