Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
A parser for Egison pattern expressions to use with Template Haskell.
Synopsis
- type Expr = Expr Name Name Exp
- type ExprL = ExprL Name Name Exp
- data ParseMode = ParseMode {}
- parseExpr :: MonadError (Errors String) m => ParseMode -> String -> m Expr
- parseExprL :: MonadError (Errors String) m => ParseMode -> String -> m ExprL
- makeParseMode :: ParseMode -> ParseMode Name Name Exp String
- makeFixity :: Fixity -> Fixity Name
- makeParseFixity :: Fixity Name -> ParseFixity Name String
Parsers
Parser configuration in egison-pattern-src-th-mode
.
ParseMode | |
|
Instances
Parsable Expr String ParseMode Source # | |
Defined in Language.Egison.Parser.Pattern.Mode.Haskell.TH parse :: MonadError (Errors String) m => ParseMode -> String -> m Expr # parseWithLocation :: MonadError (Errors String) m => ParseMode -> String -> m (Cofree (Base Expr) Location) # parseNonGreedy :: MonadError (Errors String) m => ParseMode -> String -> m (Expr, String) # parseNonGreedyWithLocation :: MonadError (Errors String) m => ParseMode -> String -> m (Cofree (Base Expr) Location, String) # |
parseExprL :: MonadError (Errors String) m => ParseMode -> String -> m ExprL Source #
Converting haskell-src-exts
's entities
makeParseFixity :: Fixity Name -> ParseFixity Name String Source #
Build ParseFixity
using Fixity
to parse Haskell-style operators