Beispiel #1
0
 def _decorator(f):
     return parser_wrap.wrap(combinators.mapf(parser._parser))(f)
Beispiel #2
0
 def test_parses(self):
     self.assertParse(combinators.mapf(primitives.unit(lambda: 1))
                                      (lambda x: x),
                      1, "test", "test")