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.Strict

Contents

Description

This module includes a strict 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 -> Result alpha tok Source

Function to run parser

data Result a tok Source

Result type of Parser

Constructors

Good !a ![tok] 
Bad !ErrorStack 

type ErrorStack = [ErrorString] Source

Type to store error state

Poly- morphic wrapper of runParser