示例#1
0
 def __init__(self, name, base, decors):
     self.name = name
     self.base = base
     self.decors = decors
     self.isScope = True
     Statement.__init__(self)
     HasChildren.__init__(self)
     Scope.__init__(self)
示例#2
0
 def __init__(self, name, base, decors):
     self.name = name
     self.base = base
     self.decors = decors
     self.isScope = True
     Statement.__init__(self)
     HasChildren.__init__(self)
     Scope.__init__(self)
示例#3
0
    def __init__(self, file, name=None):
        ScriptElement.__init__(self)
        HasChildren.__init__(self)
        Scope.__init__(self)
        self._file = file
        self.builtin = False

        if name:
            self.name = name
        else:
            self.name = "main"
示例#4
0
    def __init__(self, file, name=None):
        ScriptElement.__init__(self)
        HasChildren.__init__(self)
        Scope.__init__(self)
        self._file = file
        self.builtin = False

        if name:
            self.name = name
        else:
            self.name = "main"
示例#5
0
    def __init__(self, name, args, decors):
        Statement.__init__(self)
        HasChildren.__init__(self)
        Scope.__init__(self)
        self.name = name
        self.args = args
        self.decors = decors
        self.locals = []
        self.isScope = True
        a = self.locals.append

        for arg in self.args:
            a(arg.id)
示例#6
0
    def __init__(self, name, args, decors):
        Statement.__init__(self)
        HasChildren.__init__(self)
        Scope.__init__(self)
        self.name = name
        self.args = args
        self.decors = decors
        self.locals = []
        self.isScope = True
        a = self.locals.append

        for arg in self.args:
            a(arg.id)
示例#7
0
文件: types.py 项目: bl0b/cppy
 def __init__(self, name, scope):
     Scope.__init__(self, name, scope)
     print "new StructuredType", name, scope