diff python/ppci/common.py @ 191:6b2bec5653f1

Added assembler testset
author Windel Bouwman
date Sun, 26 May 2013 15:28:07 +0200
parents 8104fc8b5e90
children b01429a5d695
line wrap: on
line diff
--- a/python/ppci/common.py	Sat May 25 15:15:42 2013 +0200
+++ b/python/ppci/common.py	Sun May 26 15:28:07 2013 +0200
@@ -1,7 +1,8 @@
-
 from collections import namedtuple
 
-#SourceLocation = namedtuple('SourceLocation', ['row', 'col'])
+# Token is used in the lexical analyzer:
+Token = namedtuple('Token', 'typ val loc')
+
 class SourceLocation:
    def __init__(self, row, col, ln):
       self.row = row