Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The free Cfg
Synopsis
- data FreeCfg t nt = FreeCfg {
- nonterminals' :: Set nt
- terminals' :: Set t
- productionRules' :: nt -> Set (Vs t nt)
- startSymbol' :: nt
- toFreeCfg :: Cfg cfg t nt => cfg t nt -> FreeCfg t nt
Documentation
Represents a context-free grammar with its nonterminal and
terminal types. The canonical instance of Cfg
: a record that
collects up implementations of each class method.
FreeCfg | |
|