megaparsec/tests
mrkkrp a5819c6d00 allow to supply and extract parser state
Close #47, close #57.

This commit introduces ‘runParser'’ and ‘runParserT'’ functions that
take and return parser state. This makes it possible to partially parse
input, resume parsing, specify non-standard initial textual position,
etc.

Internal changes involve some refactoring to make ‘Reply’ more
readable and facilitate extraction of complete parser state on failure
as well as success.

The commit adds basic tests for the new functionality as well.
2015-10-26 02:13:39 +06:00
..
Char.hs fixed test for ‘Text.Megaparsec.Char.string'’ 2015-10-05 00:10:59 +06:00
Combinator.hs a minor correction in test for ‘between’ 2015-10-24 15:29:48 +06:00
Error.hs use ‘if’ instead of ‘bool’ 2015-10-22 14:34:25 +06:00
Expr.hs use ‘if’ instead of ‘bool’ 2015-10-22 14:34:25 +06:00
Lexer.hs use ‘if’ instead of ‘bool’ 2015-10-22 14:34:25 +06:00
Main.hs renamed ‘Text.Megaparsec.Token’ module 2015-08-30 16:00:07 +06:00
Perm.hs use ‘if’ instead of ‘bool’ 2015-10-22 14:34:25 +06:00
Pos.hs made interface of ‘Text.Megaparsec.Pos’ smarter 2015-10-21 17:33:29 +06:00
Prim.hs allow to supply and extract parser state 2015-10-26 02:13:39 +06:00
Util.hs more tests for ‘Text.Megaparsec.Prim’ module 2015-10-25 22:20:30 +06:00