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()
def _push_cst(self): self._tree_stack.append(TreeInfo(ast=self.ast))
def _push_ast(self): self._tree_stack.append(TreeInfo())