예제 #1
0
파일: combinators.py 프로젝트: rfw/kessel
 def _decorator(f):
     return parser_wrap.wrap(combinators.mapf_star(parser._parser))(f)
예제 #2
0
 def test_parses_star(self):
     self.assertParse(combinators.mapf_star(primitives.unit(lambda: [1, 2]))
                                           (lambda x, y: x + y),
                      3, "test", "test")