This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

17 righe
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