ermine-0.6: Ermine

Copyright(c) Edward Kmett and Dan Doel 2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Ermine.Parser.Style

Description

This module provides the style information for tokenizing of various portions of the language.

Synopsis

Documentation

termIdent :: TokenParsing m => IdentifierStyle m Source

The identifier style for term variables.

typeIdent :: TokenParsing m => IdentifierStyle m Source

The identifier style for type variables.

kindIdent :: TokenParsing m => IdentifierStyle m Source

The identifier style for kind variables.

termIdentifier :: (Monad m, TokenParsing m) => m Text Source

Parse a term identifier.

typeIdentifier :: (Monad m, TokenParsing m) => m Text Source

Parse a type identifier

kindIdentifier :: (Monad m, TokenParsing m) => m Text Source

Parse a kind identifier

op :: TokenParsing m => IdentifierStyle m Source

The identifier style for operators.

TODO: make this more specific to each level?

operator :: (Monad m, TokenParsing m) => m Text Source

Parse an operator.

termCon :: TokenParsing m => IdentifierStyle m Source

Specifies the data constructor identifier style

typeCon :: TokenParsing m => IdentifierStyle m Source

Specifies the type constructor identifier style