Example #1
0
 def __init__(self):
     ParseTreeFilter.__init__(self)
     nodeTypesOfInterest = ['call', 'param', 'decl', 'if', 'else',
                            'while', 'for','do', 'switch', 'return', 'break', 'continue', 'op']
     self.setNodeTypesOfInterest(nodeTypesOfInterest)
 
     
Example #2
0
 def __init__(self):
     ParseTreeFilter.__init__(self)
     nodeTypesOfInterest = ['water']
     self.setNodeTypesOfInterest(nodeTypesOfInterest)
     self.keepNodesOfInterest = False
     
     
Example #3
0
 def __init__(self):
     ParseTreeFilter.__init__(self)
     nodeTypesOfInterest = ['decl', 'call', 'param']
     self.setNodeTypesOfInterest(nodeTypesOfInterest)
Example #4
0
 def __init__(self):
     ParseTreeFilter.__init__(self)
     nodeTypesOfInterest = ['decl', 'call', 'param']
     self.setNodeTypesOfInterest(nodeTypesOfInterest)