katydid-0.4.0.2: A haskell implementation of Katydid

Safe HaskellNone
LanguageHaskell2010

Data.Katydid.Relapse.Parser

Contents

Description

This module parses the Relapse Grammar using the Parsec Library.

Synopsis

Parse Grammar

parseGrammar :: String -> Either String Grammar Source #

parseGrammar parses the Relapse Grammar.

parseGrammarWithUDFs :: MkFunc -> String -> Either String Grammar Source #

parseGrammarWithUDFs parses the Relapse Grammar with extra user defined functions.

Internal functions

These functions are exposed for testing purposes.

grammar :: MkFunc -> CharParser () Grammar Source #

For internal testing

pattern :: MkFunc -> CharParser () Pattern Source #

For internal testing

nameExpr :: CharParser () (Expr Bool) Source #

For internal testing

expr :: MkFunc -> CharParser () (Expr Bool) Source #

For internal testing

idLit :: CharParser () String Source #

For internal testing

bytesCastLit :: CharParser () ByteString Source #

For internal testing

stringLit :: CharParser () Text Source #

For internal testing

doubleCastLit :: CharParser () Double Source #

For internal testing

uintCastLit :: CharParser () Word Source #

For internal testing

intLit :: CharParser () Int Source #

For internal testing

ws :: CharParser () () Source #

For internal testing