start constructing class
[sv2nmigen.git] / lexor.py
index d19aa3ff2531558fda7a45f6f93c1314422d25df..754fcf134459009e8553edaefa3400107a608035 100644 (file)
--- a/lexor.py
+++ b/lexor.py
@@ -588,7 +588,7 @@ def t_LITERAL(t):
     #    t.lexer.begin('module')
     if keyword == 'IDENTIFIER':
         t.type = 'IDENTIFIER'
-        t.value = keyword
+        t.value = word
         return t
     t.type = keyword
     return t
@@ -811,7 +811,7 @@ def t_timescale_end(t):
     t.type = 'timescale'
     t.value = code
     t.lexer.pop_state()
-    print "match", code
+    print ("match", code)
     return t
 
 """