grammar-combinators-0.2.2: A parsing library of context-free grammar combinators.

Text.GrammarCombinators.Transform.CombineEpsilons

Synopsis

Documentation

combineEpsilons :: forall phi t r rr. GContextFreeGrammar phi t r rr -> GContextFreeGrammar phi t r rrSource

Combine consecutive epsilon rules in a given grammar into a single epsilon rule.

combineEpsilonsE :: forall phi t r rr. GExtendedContextFreeGrammar phi t r rr -> GExtendedContextFreeGrammar phi t r rrSource

Combine consecutive epsilon rules in a given extended grammar into a single epsilon rule.