megaparsec/tests
mrkkrp d595562e88 allow to parse rows of prefix/postfix operators
Close #64.

‘makeExprParser’ now generates parser that can handle several
occurrences of the same prefix or postfix operator in a row. This allows
to parse something like C pointers (for example ‘**i’) without resorting
to hacks.

The feature is experimental, I'm not entirely sure it's not
buggy. Upcoming additional tests for ‘Text.Megaparsec.Expr’ will show
whether it behaves correctly in all cases and doesn't have adverse
effects. For now, I've edited existing test to generate data with
repeating prefix negations and postfix factorials. Current code-base
passes the test.
2015-11-03 01:55:18 +06:00
..
Char.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Combinator.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Error.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Expr.hs allow to parse rows of prefix/postfix operators 2015-11-03 01:55:18 +06:00
Lexer.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Main.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Perm.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Pos.hs added test to check how ‘newPos’ throws exceptions 2015-11-01 22:28:50 +06:00
Prim.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00
Util.hs uppercase disclaimer in license 2015-10-30 19:43:34 +06:00