diff python/c3/parser.py @ 226:240111e0456f

Work on named types
author Windel Bouwman
date Fri, 12 Jul 2013 17:25:31 +0200
parents 1c7364bd74c7
children 82dfe6a32717
line wrap: on
line diff
--- a/python/c3/parser.py	Thu Jul 11 07:42:30 2013 +0200
+++ b/python/c3/parser.py	Fri Jul 12 17:25:31 2013 +0200
@@ -89,10 +89,10 @@
             mems = []
             while self.Peak != '}':
                 mem_t = self.parseTypeSpec()
-                mem_n = self.Consume('ID')
+                mem_n = self.Consume('ID').val
                 mems.append((mem_t, mem_n))
                 while self.hasConsumed(','):
-                    mem_n = self.Consume('ID')
+                    mem_n = self.Consume('ID').val
                     mems.append((mem_t, mem_n))
                 self.Consume(';')
             self.Consume('}')