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.

17 regels
381 B

  1. class LexerConf:
  2. def __init__(self, tokens, ignore=(), postlex=None, callbacks=None):
  3. self.tokens = tokens
  4. self.ignore = ignore
  5. self.postlex = postlex
  6. self.callbacks = callbacks or {}
  7. class ParserConf:
  8. def __init__(self, rules, callbacks, start):
  9. self.rules = rules
  10. self.callbacks = callbacks
  11. self.start = start