def __init__(self, parser):
    (tokens, rules, _grammar_extra) = parser.grammar.compile()
    self.write_tokens = WriteTokensTransformer({t.name: t for t in tokens})
    self.rules = list(self._build_recons_rules(rules))
def __init__(self, parser):
    (tokens, rules, _grammar_extra) = parser.grammar.compile()
    self.write_tokens = WriteTokensTransformer({t.name: t for t in tokens})
    self.rules = list(self._build_recons_rules(rules))