This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
492 B

  1. from typing import Set, Dict, Any
  2. from lark import Token, Tree
  3. class ParserPuppet(object):
  4. """
  5. Represents a LalrParser that can be step through.
  6. Shouldn't instantiated by hand, but is accessible as `UnexpectedToken.puppet`
  7. """
  8. def feed_token(self, token: Token): ...
  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: ...