- module Language.GroteTrap.Range
- module Language.GroteTrap.Trees
- module Language.GroteTrap.Language
- module Language.GroteTrap.Unparse
- module Language.GroteTrap.ShowTree
- module Language.GroteTrap.Util
- parseSentence :: Monad m => Language a -> String -> m ParseTree
- readParseTree :: Language a -> String -> ParseTree
- readExpression :: Language a -> String -> a
- data ParseTree
- evaluate :: Language a -> ParseTree -> a
- evalRange :: Monad m => Language a -> ParseTree -> Range -> m [a]
Re-exports
module Language.GroteTrap.Range
module Language.GroteTrap.Trees
module Language.GroteTrap.Language
module Language.GroteTrap.Unparse
module Language.GroteTrap.ShowTree
module Language.GroteTrap.Util
Parsing and evaluating
parseSentence :: Monad m => Language a -> String -> m ParseTreeSource
Given a language and a string, yields the parse tree.
readParseTree :: Language a -> String -> ParseTreeSource
Given a language and a string, yields the parse tree or throws an exception.
readExpression :: Language a -> String -> aSource
Given a language and a string, parses and evaluates the string.
A generic parse tree.