pygments.lexers.functional

Lexers for functional languages.

copyright:Copyright 2006-2013 by the Pygments team, see AUTHORS.
license:BSD, see LICENSE for details.
class pygments.lexers.functional.RacketLexer(**options)[source]

Lexer for Racket source code (formerly known as PLT Scheme).

New in Pygments 1.6.

class pygments.lexers.functional.SchemeLexer(**options)[source]

A Scheme lexer, parsing a stream and outputting the tokens needed to highlight scheme code. This lexer could be most probably easily subclassed to parse other LISP-Dialects like Common Lisp, Emacs Lisp or AutoLisp.

This parser is checked with pastes from the LISP pastebin at http://paste.lisp.org/ to cover as much syntax as possible.

It supports the full Scheme syntax as defined in R5RS.

New in Pygments 0.6.

class pygments.lexers.functional.CommonLispLexer(**options)[source]

A Common Lisp lexer.

New in Pygments 0.9.

class pygments.lexers.functional.HaskellLexer(**options)[source]

A Haskell lexer based on the lexemes defined in the Haskell 98 Report.

New in Pygments 0.8.

class pygments.lexers.functional.LiterateHaskellLexer(**options)[source]

For Literate Haskell (Bird-style or LaTeX) source.

Additional options accepted:

litstyle
If given, must be "bird" or "latex". If not given, the style is autodetected: if the first non-whitespace character in the source is a backslash or percent character, LaTeX is assumed, else Bird.

New in Pygments 0.9.

class pygments.lexers.functional.SMLLexer(**options)[source]

For the Standard ML language.

New in Pygments 1.5.

class pygments.lexers.functional.OcamlLexer(**options)[source]

For the OCaml language.

New in Pygments 0.7.

class pygments.lexers.functional.ErlangLexer(**options)[source]

For the Erlang functional programming language.

Blame Jeremy Thurgood (http://jerith.za.net/).

New in Pygments 0.9.

class pygments.lexers.functional.ErlangShellLexer(**options)[source]

Shell sessions in erl (for Erlang code).

New in Pygments 1.1.

class pygments.lexers.functional.OpaLexer(**options)[source]

Lexer for the Opa language (http://opalang.org).

New in Pygments 1.5.

class pygments.lexers.functional.CoqLexer(**options)[source]

For the Coq theorem prover.

New in Pygments 1.5.

class pygments.lexers.functional.NewLispLexer(**options)[source]

For newLISP. source code (version 10.3.0).

New in Pygments 1.5.

class pygments.lexers.functional.ElixirLexer(**options)[source]

For the Elixir language.

New in Pygments 1.5.

class pygments.lexers.functional.ElixirConsoleLexer(**options)[source]

For Elixir interactive console (iex) output like:

iex> [head | tail] = [1,2,3]
[1,2,3]
iex> head
1
iex> tail
[2,3]
iex> [head | tail]
[1,2,3]
iex> length [head | tail]
3

New in Pygments 1.5.

class pygments.lexers.functional.KokaLexer(**options)[source]

Lexer for the Koka language.

New in Pygments 1.6.

Project Versions

This Page