This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

23 linhas
536 B

  1. from typing import Set, Dict, Any
  2. from lark import Token, Tree
  3. class ParserPuppet(object):
  4. """
  5. Provides an interface to interactively step through the parser (LALR(1) only for now)
  6. Accessible via `UnexpectedToken.puppet` (raised by the parser on token error)
  7. """
  8. def feed_token(self, token: Token) -> Any: ...
  9. def copy(self) -> ParserPuppet: ...
  10. def pretty(self) -> str: ...
  11. def choices(self) -> Dict[str, Any]: ...
  12. def accepts(self) -> Set[str]: ...
  13. def resume_parse(self) -> Tree: ...