Example #1
0
    def _initialize_caches(self):
        self._tree_stack = [TreeInfo()]
        self._rule_stack = []
        self._cut_stack = [False]

        self._last_node = None
        self._state = None
        self._lookahead = 0

        self._clear_memoization_caches()
Example #2
0
 def _push_cst(self):
     self._tree_stack.append(TreeInfo(ast=self.ast))
Example #3
0
 def _push_ast(self):
     self._tree_stack.append(TreeInfo())