comparison python/ppci/c3/visitor.py @ 362:c05ab629976a

Added CPUID for arm
author Windel Bouwman
date Sat, 15 Mar 2014 10:56:34 +0100
parents 5477e499b039
children 6ae782a085e0
comparison
equal deleted inserted replaced
361:614a7f6d4d4d 362:c05ab629976a
22 self.do(decl) 22 self.do(decl)
23 elif type(node) is Function: 23 elif type(node) is Function:
24 for s in node.declarations: 24 for s in node.declarations:
25 self.do(s) 25 self.do(s)
26 self.do(node.typ) 26 self.do(node.typ)
27 self.do(node.body) 27 if node.body:
28 self.do(node.body)
28 elif type(node) is Compound: 29 elif type(node) is Compound:
29 for s in node.statements: 30 for s in node.statements:
30 self.do(s) 31 self.do(s)
31 elif type(node) is If: 32 elif type(node) is If:
32 self.do(node.condition) 33 self.do(node.condition)