sexpr-parser-0.2.2.0: Simple s-expression parser
Copyright(C) Richard Cook 2019
LicenseMIT
Maintainerrcook@rcook.org
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.SExpression.Internal

Description

This module provides internal parser functions.

Synopsis

S-expression parser

parseSExpr Source #

Arguments

:: LiteralParsers 
-> Parser SExpr

parser

S-expression parser

S-expression value parsers

parseAtom Source #

Arguments

:: Parser SExpr

parser

Parse s-expression atom

parseConsList Source #

Arguments

:: LiteralParsers 
-> Parser SExpr

parser

Parse s-expression cons list

parseList Source #

Arguments

:: LiteralParsers 
-> Parser SExpr

parser

Parse s-expression list

parseQuoted Source #

Arguments

:: LiteralParsers 
-> Parser SExpr

parser

Parse s-expression quoted expression

parseStringDef Source #

Arguments

:: Parser SExpr

parser

Default parser for s-expression string literals

parseNumberDef Source #

Arguments

:: Parser SExpr

parser

Default parser for s-expression numeric literals

parseBoolDef :: Parser SExpr Source #

Default parser for s-expression boolean literals

mkLiteralParsers Source #

Arguments

:: (LiteralParsersM -> LiteralParsersM)

Cumulative override function

-> LiteralParsers 

Smart constructor for parser configuration that allows overriding the default literal parsers

overrideBoolP Source #

Arguments

:: Parser SExpr

Bool parser

-> LiteralParsersM -> LiteralParsersM 

Boolean parser override function

overrideNumberP Source #

Arguments

:: Parser SExpr

Number parser

-> LiteralParsersM -> LiteralParsersM 

Number parser override function

overrideStringP Source #

Arguments

:: Parser SExpr

String parser

-> LiteralParsersM -> LiteralParsersM 

String parser override function