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.Types

Description

This module provides parser context type Parser and value type SExpr.

Synopsis

Documentation

type Parser = Parsec Void String Source #

Parser context

data SExpr Source #

S-expression values

Constructors

Atom String

atom

List [SExpr]

list

ConsList [SExpr] SExpr

cons list

Number Integer

number literal

String String

string literal

Bool Bool

Boolean literal

Instances

Instances details
Eq SExpr Source # 
Instance details

Defined in Text.SExpression.Types

Methods

(==) :: SExpr -> SExpr -> Bool #

(/=) :: SExpr -> SExpr -> Bool #

Read SExpr Source # 
Instance details

Defined in Text.SExpression.Types

Show SExpr Source # 
Instance details

Defined in Text.SExpression.Types

Methods

showsPrec :: Int -> SExpr -> ShowS #

show :: SExpr -> String #

showList :: [SExpr] -> ShowS #