parsek-1.0.1: Parallel Parsing Processes

CopyrightKoen Claessen 2003
LicenseGPL
MaintainerJP Bernardy
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.ParserCombinators.Parsek

Description

This module provides the Parsek library developed by Koen Claessen in his functional pearl article Parallel Parsing Processes, Journal of Functional Programming, 14(6), 741–757, Cambridge University Press, 2004:

http://www.cs.chalmers.se/~koen/pubs/entry-jfp04-parser.html

http://www.cs.chalmers.se/Cs/Grundutb/Kurser/afp/

http://www.cs.chalmers.se/Cs/Grundutb/Kurser/afp/code/week3/Parsek.hs

Synopsis

Documentation

data Parser s a Source

type Expect s = [(String, Maybe s)] Source

An intersection (nesting) of things currently expected

type ParseMethod s a r = P s a -> [s] -> ParseResult s r Source

type ParseResult s r = Either (Err s) r Source

mapErrR :: (s -> s') -> ParseResult s r -> ParseResult s' r Source

parse :: Parser s a -> ParseMethod s a r -> [s] -> ParseResult s r Source