parsec-3.1.2: Monadic parser combinators

Portabilitynon-portable (uses non-portable module Text.Parsec.Token)
Stabilityprovisional
Maintainerderek.a.elkins@gmail.com
Safe HaskellSafe-Infered

Text.Parsec.Language

Description

A helper module that defines some language definitions that can be used to instantiate a token parser (see Text.Parsec.Token).

Synopsis

Documentation

haskellDef :: LanguageDef stSource

The language definition for the Haskell language.

haskell :: TokenParser stSource

A lexer for the haskell language.

mondrianDef :: LanguageDef stSource

The language definition for the language Mondrian.

mondrian :: TokenParser stSource

A lexer for the mondrian language.

haskellStyle :: LanguageDef stSource

This is a minimal token definition for Haskell style languages. It defines the style of comments, valid identifiers and case sensitivity. It does not define any reserved words or operators.

javaStyle :: LanguageDef stSource

This is a minimal token definition for Java style languages. It defines the style of comments, valid identifiers and case sensitivity. It does not define any reserved words or operators.

data GenLanguageDef s u m Source

The GenLanguageDef type is a record that contains all parameterizable features of the Token module. The module Language contains some default definitions.