예제 #1
0
파일: Expression.py 프로젝트: qram9/c_ast
    def __init__(self):
        """Expression type is somewhat of an C++/Java abstract type, 
__init__ must only be called by a subclass. 
Sets _needs_parens to False. User may set it 
to true in a subclass to add a parenthesis expression"""
        self._needs_parens = False
        Traversable.__init__(self)
예제 #2
0
 def __init__(self):
     """Initializes SymbolTable with a new dict type"""
     self.currSyms = {}
     Traversable.__init__(self)
예제 #3
0
파일: Declaration.py 프로젝트: qram9/c_ast
 def __init__(self, size=1):
     Traversable.__init__(self)
     self.setNumChildren(size)
예제 #4
0
 def __init__(self):
     Traversable.__init__(self)
예제 #5
0
 def __init__(self):
     Traversable.__init__(self)
     self.setNumChildren(0)