()
pycparser hack to include scope_stack as parameter in CParser parse method
pycparser hack to include scope_stack as parameter in CParser parse method
pycparser hack to include scope_stack as parameter in CParser parse method
def _accepts_scope_stack():
    """
    pycparser hack to include scope_stack as parameter in CParser parse method
    """
    def parse(self, text, scope_stack=None, filename='', debuglevel=0):
        self.clex.filename = filename
        self.clex.reset_lineno()
        self._scope_stack = [dict()] if scope_stack is None else scope_stack
        self._last_yielded_token = None
        return self.cparser.parse(
            input=text,
            lexer=self.clex,
            debug=debuglevel)
    setattr(pycparser.CParser, 'parse', parse)
def _accepts_scope_stack ( ) : def parse ( self , text , scope_stack = None , filename = '' , debuglevel = 0 ) : self . clex . filename = filename self . clex . reset_lineno ( ) self . _scope_stack = [ dict ( ) ] if scope_stack is None else scope_stack self . _last_yielded_token = None return self . cparser . parse ( input = text , lexer = self . clex , debug = debuglevel ) setattr ( pycparser . CParser , 'parse' , parse )