comparison python/tree.py @ 318:e84047f29c78

Add burg and yacc initial attempts
author Windel Bouwman
date Tue, 31 Dec 2013 12:38:15 +0100
parents
children 8d07a4254f04
comparison
equal deleted inserted replaced
317:e30a77ae359b 318:e84047f29c78
1
2 class Tree:
3 def __init__(self, name, *args):
4 self.name = name
5 self.children = args
6
7 def __repr__(self):
8 return 'Tree({}, {})'.format(self.name, self.children)