Bundled language definitionsΒΆ

The parce package comes with an amount of bundled language definitions. You can import them directly, e.g.:

from parce.lang.css import Css
root_lexicon = Css.root

but you can also use the find() function to get the root lexicon of a language definition by its name:

import parce
root_lexicon = parce.find("css")

This is a listing of the modules in parce.lang and the Language classes they define:

Module

Languages

css

Css

html

XHtml, Html

ini

Ini

javascript

JavaScript

json

Json

lilypond

LilyPond

python

Python, PythonConsole

scheme

Scheme, SchemeLily

tex

Latex

texinfo

Texinfo

toml

Toml

troff

Troff

xml

Xml, Dtd