Mercurial > lcfOS
diff python/tree.py @ 322:44f336460c2a
Half of use of burg spec for arm
author | Windel Bouwman |
---|---|
date | Mon, 27 Jan 2014 19:58:07 +0100 |
parents | 84d67cce67b7 |
children | e9fe6988497c |
line wrap: on
line diff
--- a/python/tree.py Sun Jan 19 18:48:45 2014 +0100 +++ b/python/tree.py Mon Jan 27 19:58:07 2014 +0100 @@ -3,6 +3,7 @@ """ Tree node with a name and possibly some child nodes """ def __init__(self, name, *args): self.name = name + self.value = None self.children = args def __repr__(self): @@ -53,4 +54,4 @@ rule = tree.state.get_rule(goal) results = [self.apply_rules(kid_tree, kid_goal) for kid_tree, kid_goal in zip(self.kids(tree, rule), self.nts(rule))] - self.pat_f[rule](*results) + self.pat_f[rule](tree, *results)