view 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
line wrap: on
line source


class Tree:
    def __init__(self, name, *args):
        self.name = name
        self.children = args

    def __repr__(self):
        return 'Tree({}, {})'.format(self.name, self.children)