scala/scala — pull request #20 by dcsobral (2011-12-02 19:17:44+00:00)
Title: Add filter/withFilter method to Parser

Complements map and flatMap in for comprehensions. This is required when pattern matching is used on the
result of the generators.

It is implemented through a new filterWithError method on ParseResult.

Contributed by: Daniel C. Sobral