This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

17 wiersze
397 B

  1. class Rule(object):
  2. """
  3. origin : a symbol
  4. expansion : a list of symbols
  5. """
  6. def __init__(self, origin, expansion, alias=None, options=None):
  7. self.origin = origin
  8. self.expansion = expansion
  9. self.alias = alias
  10. self.options = options
  11. def __repr__(self):
  12. return '<%s : %s>' % (self.origin, ' '.join(map(str,self.expansion)))