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 line
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)))