invertible-syntax-poly-0.1.0.1: Extends invertible-syntax library capable to use parameterized token type.

Copyright2012 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Text.Syntax.Parser.List.Lazy

Contents

Description

This module includes a lazy parser implementation for Text.Syntax.Poly.

Synopsis

Syntax instance Parser type

data Parser tok alpha Source

Naive Parser type. Parse [tok] into alpha.

runParser :: Parser tok alpha -> [tok] -> ErrorStack -> Either ErrorStack (alpha, [tok]) Source

Function to run parser

type ErrorStack = [ErrorString] Source

Type to store error state

Poly- morphic wrapper of runParser