Mercurial > lcfOS
diff python/c3/parser.py @ 227:82dfe6a32717
Fixed tests
author | Windel Bouwman |
---|---|
date | Fri, 12 Jul 2013 17:42:39 +0200 |
parents | 240111e0456f |
children | 7f18ed9b6b7e |
line wrap: on
line diff
--- a/python/c3/parser.py Fri Jul 12 17:25:31 2013 +0200 +++ b/python/c3/parser.py Fri Jul 12 17:42:39 2013 +0200 @@ -90,10 +90,10 @@ while self.Peak != '}': mem_t = self.parseTypeSpec() mem_n = self.Consume('ID').val - mems.append((mem_t, mem_n)) + mems.append(astnodes.StructField(mem_n, mem_t)) while self.hasConsumed(','): mem_n = self.Consume('ID').val - mems.append((mem_t, mem_n)) + mems.append(astnodes.StructField(mem_n, mem_t)) self.Consume(';') self.Consume('}') theT = astnodes.StructureType(mems)