Text.ParserCombinators.Parsec.Prim.html revision abe7f26ab7803e9e03dace5d7b2c11d1cc8b842e
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><TITLE
></SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
></TD
><TD CLASS="title"
>Haskell Hierarchical Libraries (parsec package)</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>daan@cs.uu.nl</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>The primitive parser combinators.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3A%3C%3F%3E"
></A
><B
>(<?>)</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Prelude.html#t%3AString"
>String</A
> -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3A%3C%7C%3E"
></A
><B
>(<|>)</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t%3AParser"
></A
><B
>Parser</B
> a = <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> <A HREF="Prelude.html#t%3AChar"
>Char</A
> () a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
> <A NAME="t%3AGenParser"
></A
><B
>GenParser</B
> tok st a</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:GenParser" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Prelude.html#t%3AFunctor"
>Functor</A
> (<A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Prelude.html#t%3AMonad"
>Monad</A
> (<A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Control.Monad.html#t%3AMonadPlus"
>MonadPlus</A
> (<A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st)</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3ArunParser"
></A
><B
>runParser</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> st -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourceName"
>SourceName</A
> -> [tok] -> <A HREF="Prelude.html#t%3AEither"
>Either</A
> <A HREF="Text.ParserCombinators.Parsec.Error.html#t%3AParseError"
>ParseError</A
> a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Aparse"
></A
><B
>parse</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok () a -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourceName"
>SourceName</A
> -> [tok] -> <A HREF="Prelude.html#t%3AEither"
>Either</A
> <A HREF="Text.ParserCombinators.Parsec.Error.html#t%3AParseError"
>ParseError</A
> a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AparseFromFile"
></A
><B
>parseFromFile</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AParser"
>Parser</A
> a -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourceName"
>SourceName</A
> -> <A HREF="Prelude.html#t%3AIO"
>IO</A
> (<A HREF="Prelude.html#t%3AEither"
>Either</A
> <A HREF="Text.ParserCombinators.Parsec.Error.html#t%3AParseError"
>ParseError</A
> a)</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AparseTest"
></A
><B
>parseTest</B
> :: <A HREF="Prelude.html#t%3AShow"
>Show</A
> a => <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok () a -> [tok] -> <A HREF="Prelude.html#t%3AIO"
>IO</A
> ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Atoken"
></A
><B
>token</B
> :: (tok -> <A HREF="Prelude.html#t%3AString"
>String</A
>) -> (tok -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
>) -> (tok -> <A HREF="Prelude.html#t%3AMaybe"
>Maybe</A
> a) -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Atokens"
></A
><B
>tokens</B
> :: <A HREF="Prelude.html#t%3AEq"
>Eq</A
> tok => ([tok] -> <A HREF="Prelude.html#t%3AString"
>String</A
>) -> (<A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
> -> [tok] -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
>) -> [tok] -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st [tok]</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AtokenPrim"
></A
><B
>tokenPrim</B
> :: (tok -> <A HREF="Prelude.html#t%3AString"
>String</A
>) -> (<A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
> -> tok -> [tok] -> <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
>) -> (tok -> <A HREF="Prelude.html#t%3AMaybe"
>Maybe</A
> a) -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Atry"
></A
><B
>try</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Alabel"
></A
><B
>label</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Prelude.html#t%3AString"
>String</A
> -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Alabels"
></A
><B
>labels</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> [<A HREF="Prelude.html#t%3AString"
>String</A
>] -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Aunexpected"
></A
><B
>unexpected</B
> :: <A HREF="Prelude.html#t%3AString"
>String</A
> -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Apzero"
></A
><B
>pzero</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Amany"
></A
><B
>many</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st [a]</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AskipMany"
></A
><B
>skipMany</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st a -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgetState"
></A
><B
>getState</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st st</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AsetState"
></A
><B
>setState</B
> :: st -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AupdateState"
></A
><B
>updateState</B
> :: (st -> st) -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgetPosition"
></A
><B
>getPosition</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AsetPosition"
></A
><B
>setPosition</B
> :: <A HREF="Text.ParserCombinators.Parsec.Pos.html#t%3ASourcePos"
>SourcePos</A
> -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgetInput"
></A
><B
>getInput</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st [tok]</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AsetInput"
></A
><B
>setInput</B
> :: [tok] -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st ()</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AgetParserState"
></A
><B
>getParserState</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st (<A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AState"
>State</A
> tok st)</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3AsetParserState"
></A
><B
>setParserState</B
> :: <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AState"
>State</A
> tok st -> <A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AGenParser"
>GenParser</A
> tok st (<A HREF="Text.ParserCombinators.Parsec.Prim.html#t%3AState"
>State</A
> tok st)</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 0.6</TD
></TR
></TABLE
></BODY
></HTML
>