Safe Haskell | None |
---|---|
Language | Haskell2010 |
This parser extends the FormalLanguage.Parser
parser of single- and
multi-dim grammars to accept grammar product definitions as well.
TODO display function names like this: fun,fun,fun
- parseGrammarProduct :: Parse m ()
- parseProductString :: Parse m Grammar
- data ExprGrammar
- = ExprGrammar { }
- | ExprNumber { }
Documentation
parseGrammarProduct :: Parse m () Source
The top-level parser for a grammar product. It can be used as one of the additional parser arguments, the formal grammars parser accepts.
parseProductString :: Parse m Grammar Source
Performs the actual parsing of a product string. Uses an expression parser internally.