Beispiel #1
0
 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
Beispiel #2
0
 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