parsley-core-1.6.0.0: A fast parser combinator library backed by Typed Template Haskell
LicenseBSD-3-Clause
MaintainerJamie Willis
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Parsley.Internal.Frontend.Analysis.Cut

Description

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

Documentation

cutAnalysis :: Fix Combinator a -> Fix Combinator a Source #

Annotate a tree with its cut-points. We assume a cut for let-bound parsers.

Since: 1.5.0.0