LParse-0.3.0.0: A continuation-based parser library

Copyright(c) Marcus Völker 2018
LicenseMIT
Maintainermarcus.voelker@rwth-aachen.de
Safe HaskellSafe
LanguageHaskell2010

Text.LParse.Metaparser

Description

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

Synopsis

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

data AST Source #

Abstract Syntax Tree generated by the metaparser, suitable for postprocessing

Instances
Eq AST Source # 
Instance details

Defined in Text.LParse.Metaparser

Methods

(==) :: AST -> AST -> Bool #

(/=) :: AST -> AST -> Bool #

Show AST Source # 
Instance details

Defined in Text.LParse.Metaparser

Methods

showsPrec :: Int -> AST -> ShowS #

show :: AST -> String #

showList :: [AST] -> ShowS #