Safe Haskell | None |
---|---|
Language | Haskell2010 |
- build :: SyntaxTree -> [GrammarRule]
- ioTryBuild :: SyntaxTree -> IO [GrammarRule]
- lookupGrammar :: String -> [GrammarRule] -> Maybe ConstructedParser
Documentation
build :: SyntaxTree -> [GrammarRule] Source
given a syntax tree for a valid EBNF grammar, returns a association list with the key as the meta identifier.
ioTryBuild :: SyntaxTree -> IO [GrammarRule] Source
IO function, outputs errors if build fails.
lookupGrammar :: String -> [GrammarRule] -> Maybe ConstructedParser Source
lookup for grammars.