Use the tuple-unpacking new feature of parsley.
Rewrite according to Tom's instruction.
(The hand code of rule name needs more thinking")