Copyright | (C) Richard Cook 2019 |
---|---|
License | MIT |
Maintainer | rcook@rcook.org |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides internal parser functions.
Synopsis
- parseSExpr :: LiteralParsers -> Parser SExpr
- parseAtom :: Parser SExpr
- parseConsList :: LiteralParsers -> Parser SExpr
- parseList :: LiteralParsers -> Parser SExpr
- parseQuoted :: LiteralParsers -> Parser SExpr
- parseStringDef :: Parser SExpr
- parseNumberDef :: Parser SExpr
- parseBoolDef :: Parser SExpr
- mkLiteralParsers :: (LiteralParsersM -> LiteralParsersM) -> LiteralParsers
- overrideBoolP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
- overrideNumberP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
- overrideStringP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
S-expression parser
S-expression value parsers
parseBoolDef :: Parser SExpr Source #
Default parser for s-expression boolean literals
:: (LiteralParsersM -> LiteralParsersM) | Cumulative override function |
-> LiteralParsers |
Smart constructor for parser configuration that allows overriding the default literal parsers
:: Parser SExpr | Bool parser |
-> LiteralParsersM -> LiteralParsersM |
Boolean parser override function
:: Parser SExpr | Number parser |
-> LiteralParsersM -> LiteralParsersM |
Number parser override function
:: Parser SExpr | String parser |
-> LiteralParsersM -> LiteralParsersM |
String parser override function