diff python/ppci/c3/parser.py @ 336:d1ecc493384e

Added spiffy armtoken class for bit fiddeling. Added cool test that checks for build repeatability
author Windel Bouwman
date Wed, 19 Feb 2014 22:32:15 +0100
parents 6f4753202b9a
children 5477e499b039
line wrap: on
line diff
--- a/python/ppci/c3/parser.py	Mon Feb 17 20:41:30 2014 +0100
+++ b/python/ppci/c3/parser.py	Wed Feb 19 22:32:15 2014 +0100
@@ -60,7 +60,7 @@
         return t
 
     def addDeclaration(self, decl):
-        self.currentPart.declarations.append(decl)
+        self.currentPart.add_declaration(decl)
 
     def parseImport(self):
         self.Consume('import')