Copyright | (c) Daan Leijen 1999-2001, (c) Paolo Martini 2007 |
---|---|
License | BSD-style (see the LICENSE file) |
Maintainer | derek.a.elkins@gmail.com |
Stability | provisional |
Portability | non-portable (uses non-portable module Text.Parsec.Token) |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
A helper module that defines some language definitions that can be used to instantiate a token parser (see Text.Parsec.Token).
- haskellDef :: LanguageDef st
- haskell :: TokenParser st
- mondrianDef :: LanguageDef st
- mondrian :: TokenParser st
- emptyDef :: LanguageDef st
- haskellStyle :: LanguageDef st
- javaStyle :: LanguageDef st
- type LanguageDef st = GenLanguageDef String st Identity
- data GenLanguageDef s u m
Documentation
haskellDef :: LanguageDef st Source
The language definition for the Haskell language.
haskell :: TokenParser st Source
A lexer for the haskell language.
mondrianDef :: LanguageDef st Source
The language definition for the language Mondrian.
mondrian :: TokenParser st Source
A lexer for the mondrian language.
emptyDef :: LanguageDef st Source
haskellStyle :: LanguageDef st Source
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 st Source
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.
type LanguageDef st = GenLanguageDef String st Identity Source
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.