def declare(self, loc, type, shortname=None, fullname=None, progname=None): d = Decl(loc) d.type = type d.progname = progname d.shortname = shortname d.fullname = fullname self.symtab.declare(d) return d
def declare( self, loc, type, shortname=None, fullname=None, progname=None, attributes={} ): d = Decl(loc) d.type = type d.progname = progname d.shortname = shortname d.fullname = fullname d.attributes = attributes self.symtab.declare(d) return d