Copyright | (c) Marcus Völker 2018 |
---|---|
License | MIT |
Maintainer | marcus.voelker@rwth-aachen.de |
Safe Haskell | Safe |
Language | Haskell2010 |
This module contains the Metaparser, which is a parser that parses a grammar in EBNF and returns a parser that parses that grammar into an AST
Documentation
specParse :: String -> String -> Either String AST Source #
Convenience function chaining creation and usage of the metaParser
into a single invocation.
metaParser :: Parser r String (Parser r' String AST) Source #
Parser that takes a grammar and returns a parser that parses that grammar into an AST
Abstract Syntax Tree generated by the metaparser, suitable for postprocessing