diff python/ppci/c3/parser.py @ 313:04cf4d26a3bc

Added constant function
author Windel Bouwman
date Wed, 18 Dec 2013 18:02:26 +0100
parents ff665880a6b0
children 084cccaa5deb
line wrap: on
line diff
--- a/python/ppci/c3/parser.py	Mon Dec 16 17:58:15 2013 +0100
+++ b/python/ppci/c3/parser.py	Wed Dec 18 18:02:26 2013 +0100
@@ -155,6 +155,7 @@
             self.Consume('=')
             val = self.Expression()
             c = Constant(name.val, t, val)
+            self.addDeclaration(c)
             c.loc = name.loc
             if not self.hasConsumed(','):
                 break