This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

17 lignes
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)))