1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 27 unchanged lines hidden (view full) --- 36 self.ident = ident 37 self.formals = formals 38 self.statements = statements 39 40 def __repr__(self): 41 return "[FuncDecl: %s]" % self.ident 42 43 def files(self, parent=None): |
44 return set() |
45 |
46 def generate(self): 47 types = [] 48 params = [] 49 void_type = self.symtab.find("void", Type) 50 51 # Generate definition code 52 self.symtab.pushFrame() 53 --- 26 unchanged lines hidden --- |