Encode-1.3.4: Encoding character data

Portabilityportable
Stabilityprovisional
Maintainerotakar.smrz mff.cuni.cz

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

Copyright (C) 2003 Koen Claessen

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

PureFP.Parsers.Stream

Documentation

data Parser s a Source

Instances

satisfy :: Show s => (s -> Bool) -> Parser s sSource

string :: (Eq s, Show s) => [s] -> Parser s [s]Source

char :: (Eq a, Show a) => a -> Parser a aSource

noneOf :: (Eq s, Show s) => [s] -> Parser s sSource

oneOf :: (Eq s, Show s) => [s] -> Parser s sSource

munch :: (s -> Bool) -> Parser s [s]Source

munch1 :: Show s => (s -> Bool) -> Parser s [s]Source

label :: Parser s a -> String -> Parser s aSource

(<?>) :: Parser s a -> String -> Parser s aSource

(<|>) :: Parser s a -> Parser s a -> Parser s aSource

(<<|>) :: Parser s a -> Parser s a -> Parser s aSource

try :: Parser s a -> Parser s aSource

choice :: [Parser s a] -> Parser s aSource

option :: a -> Parser s a -> Parser s aSource

between :: Parser s open -> Parser s close -> Parser s a -> Parser s aSource

count :: Int -> Parser s a -> Parser s [a]Source

chainl1 :: Parser s a -> Parser s (a -> a -> a) -> Parser s aSource

chainl :: Parser s a -> Parser s (a -> a -> a) -> a -> Parser s aSource

chainr1 :: Parser s a -> Parser s (a -> a -> a) -> Parser s aSource

chainr :: Parser s a -> Parser s (a -> a -> a) -> a -> Parser s aSource

many1 :: Parser s a -> Parser s [a]Source

many :: Parser s a -> Parser s [a]Source

sepBy1 :: Parser s a -> Parser s sep -> Parser s [a]Source

sepBy :: Parser s a -> Parser s sep -> Parser s [a]Source

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

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