katydid-0.1.0.0: A haskell implementation of Katydid

Safe HaskellNone
LanguageHaskell2010

ParsePatterns

Description

This is an internal relapse module.

It contains relapse grammar parsing helper functions and

it also contains a parser for the JSON serialized relapse AST.

Synopsis

Documentation

newBuiltIn :: String -> ParsedExpr -> Either String ParsedExpr Source #

newBuiltIn parsers a builtin function to a relapse expression.

newFunction :: String -> [ParsedExpr] -> Either String ParsedExpr Source #

newFunction parsers a relapse function to a relapse expression.

fromJson :: String -> Either String Refs Source #

fromJson parses the relapse AST that has been serialized to JSON.