abailly/jparsec — pull request #16 by stepancheg (2014-02-18 15:39:13+00:00)
Title: Parser.withSource() parser

`Parser.withSource()` parser applies this parser and returns its
result along with matches string.

`.token()` parser could be used instead of `.withSource()`, however
sometimes `WithSource` is more convenient, because global string
object has to be stored somewhere to resolve token into string.

Also, `WithSource` class is type-parameterized, unlike Token.