projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Action.Child: Handle calling the definition.
[python-bulletml.git]
/
bulletml
/
impl.py
diff --git
a/bulletml/impl.py
b/bulletml/impl.py
index
f0e8964
..
d6753e3
100644
(file)
--- a/
bulletml/impl.py
+++ b/
bulletml/impl.py
@@
-48,7
+48,8
@@
class Action(object):
return "%s(pc=%r, actions=%r)" % (
type(self).__name__, self.pc, self.actions)
return "%s(pc=%r, actions=%r)" % (
type(self).__name__, self.pc, self.actions)
- def Child(self, actions, params, rank, repeat=1):
+ def Child(self, action, params, rank, repeat=1):
+ actions, params = action(params, rank)
return type(self)(self, actions, params, rank, repeat)
def vanish(self):
return type(self)(self, actions, params, rank, repeat)
def vanish(self):