Mercurial > lcfOS
diff python/ppci/c3/astnodes.py @ 316:56e6ff84f646
Fixed burn led demo
author | Windel Bouwman |
---|---|
date | Sat, 21 Dec 2013 13:13:26 +0100 |
parents | 084cccaa5deb |
children | d1ecc493384e |
line wrap: on
line diff
--- a/python/ppci/c3/astnodes.py Sat Dec 21 10:03:01 2013 +0100 +++ b/python/ppci/c3/astnodes.py Sat Dec 21 13:13:26 2013 +0100 @@ -85,11 +85,11 @@ class StructField: + """ Field of a struct type """ def __init__(self, name, typ): assert type(name) is str self.name = name self.typ = typ - self.offset = 0 class StructureType(Type): @@ -133,6 +133,7 @@ class Constant(Symbol): + """ Constant definition """ def __init__(self, name, typ, value): super().__init__(name) self.typ = typ @@ -147,7 +148,6 @@ super().__init__(name) self.typ = typ self.isLocal = False - self.isReadOnly = False self.isParameter = False def __repr__(self):