License | BSD-3-Clause |
---|---|
Maintainer | Jamie Willis |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Exposes a transformation that annotates the parts of the grammar where cuts occur: these are places where backtracking is not allowed to occur. This information is used to help with correct allocation of coins used for Parsley.Internal.Backend.Analysis.Coins: the combinator tree has access to scoping information lost in the machine.
Since: 1.5.0.0
Synopsis
- cutAnalysis :: Bool -> Fix Combinator a -> Fix Combinator a
Documentation
:: Bool | Whether or not the parser in question is a let-bound parser. |
-> Fix Combinator a | |
-> Fix Combinator a |
Annotate a tree with its cut-points. We assume a cut for let-bound parsers.
Since: 1.5.0.0