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

Text.GrammarCombinators.Utils.ToGraph

Documentation

ruleToGraph :: forall phi t r rr gr ix. (Token t, Domain phi, DynGraph gr) => Int -> GExtendedContextFreeGrammar phi t r rr -> phi ix -> gr String StringSource

fullGrammarToGraph :: forall phi t r rr gr. (Token t, Domain phi, DynGraph gr) => Int -> GExtendedContextFreeGrammar phi t r rr -> gr String StringSource

reachableGrammarToGraph :: forall phi t r rr gr ix. (Token t, Domain phi, DynGraph gr) => Int -> GExtendedContextFreeGrammar phi t r rr -> phi ix -> gr String StringSource

showGraph :: DotRepr dg n => dg n -> IO ()Source