Action.Child: Handle calling the definition.
[python-bulletml.git] / bulletml / impl.py
index f0e8964..d6753e3 100644 (file)
@@ -48,7 +48,8 @@ class Action(object):
         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):