pads-haskell-0.0.0.1: PADS data description language for Haskell

Copyright(c) 2011
Kathleen Fisher <kathleen.fisher@gmail.com>
John Launchbury <john.launchbury@gmail.com>
LicenseMIT
MaintainerKarl Cronburg <karl@cs.tufts.edu>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Pads.CoreBaseTypes

Contents

Description

 

Synopsis

Documentation

type Char_md = Base_md Source #

Metadata type for a PADS Char

char_parseM :: PadsParser (Char, Base_md) Source #

Monadic parser for a PADS Char

char_def :: Char Source #

Default value inserted by the parser for a PADS Char

int_parseM :: PadsParser (Int, Base_md) Source #

Monadic parser for a PADS Int

int_def :: Int Source #

Default value inserted by the parser for a PADS Int

integer_parseM :: PadsParser (Integer, Base_md) Source #

Monadic parser for a PADS Integer

integer_def :: Integer Source #

Default value inserted by the parser for a PADS Integer

float_parseM :: PadsParser (Float, Base_md) Source #

Monadic parser for a PADS Float, e.g. "-3.1415"

float_def :: Float Source #

Default value inserted by the parser for a PADS Float

double_parseM :: PadsParser (Double, Base_md) Source #

Monadic parser for a textual PADS Double, e.g. "-3.1415"

double_def :: Double Source #

Default value inserted by the parser for a PADS Float

digit_parseM :: PadsParser (Digit, Base_md) Source #

Monadic parser for a PADS Digit according to isDigit

digit_def :: Digit Source #

Default value inserted by the parser for a PADS Digit

string_def :: [Char] Source #

Default value inserted by the parser for a PADS String

type StringC = String Source #

string with end character. Ex:

StringC ','

type StringFW = String Source #

string of fixed length

type StringVW = String Source #

string of variable length

type StringME = String Source #

string with matching expression. For example:

[pads| type StrME = StringME 'a+' |]

type StringSE = String Source #

string matching given native regex. PADS uses posix regex (from the regex-posix package). For example:

[pads| StringSE <| RE "b|c" |>|]

type StringP = String Source #

string with a predicate. For example:

[pads| type Digits = StringP Char.isDigit |]

type StringPESC = String Source #

string predicate with escape condition

type EOF = () Source #

End of File

type EOR = () Source #

End of Record

Orphan instances

Pads1 Int Bytes Bytes_md Source # 
Pads1 () Char Base_md Source # 
Pads1 () Double Base_md Source # 
Pads1 () Float Base_md Source # 
Pads1 () Int Base_md Source # 
Pads1 () Integer Base_md Source # 
Pads1 () String Base_md Source #