Copyright (c) Daan Leijen 1999-2001, (c) Paolo Martini 2007 BSD-style (see the LICENSE file) derek.a.elkins@gmail.com provisional non-portable (uses non-portable module Text.Parsec.Token) Safe Haskell98

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

The language definition for the Haskell language.

A lexer for the haskell language.

The language definition for the language Mondrian.

A lexer for the mondrian language.

This is the most minimal token definition. It is recommended to use this definition as the basis for other definitions. emptyDef has no reserved names or operators, is case sensitive and doesn't accept comments, identifiers or operators.

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.

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 Text.Parsec.Token module. The module Text.Parsec.Language contains some default definitions.