mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-11-23 19:38:05 +03:00
a5819c6d00
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. |
||
---|---|---|
.. | ||
Char.hs | ||
Combinator.hs | ||
Error.hs | ||
Expr.hs | ||
Lexer.hs | ||
Main.hs | ||
Perm.hs | ||
Pos.hs | ||
Prim.hs | ||
Util.hs |