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

Copyright2010-11 University of Marburg, 2012 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Text.Syntax.Poly.Combinators.Char

Contents

Description

This module contains Char type combinators for Syntax.

Synopsis

Lexemes

char :: Syntax Char delta => Char -> delta Char Source

Syntax of passed Char.

comma :: Syntax Char delta => delta () Source

Syntax comma (,).

dot :: Syntax Char delta => delta () Source

Syntax dot (.).

Whitespace

space :: Syntax Char delta => delta Char Source

Syntax space.

skipSpace :: Syntax Char delta => delta () Source

skipSpace marks a position where whitespace is allowed to occur. It accepts arbitrary space while parsing, and produces no space while printing.

sepSpace :: Syntax Char delta => delta () Source

sepSpace marks a position where whitespace is required to occur. It requires one or more space characters while parsing, and produces a single space character while printing.

optSpace :: Syntax Char delta => delta () Source

optSpace marks a position where whitespace is desired to occur. It accepts arbitrary space while parsing, and produces a single space character while printing.