This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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