The parce lexer
Project description
import parce
This module parses text into tokens, and is able to reparse only modified parts of the text, using the earlier generated tokens. Tokenized text lives in a tree structure with powerful quering methods for finding tokens and contexts.
The parce module is designed to be fast, and can tokenize in a background thread, so that even when using very large documents, GUI applications that need to be responsive do not grind to a halt.
Main use case: syntax highlighting in text editors, but also understanding the meaning of text to be able to provided context sensitive editing features.
The parce module is written and maintained by Wilbert Berendsen.
Why the name? It’s short, sounds like ‘parse’, and has the meaning of “friend”, “buddy”, “bro.” :-)
The parce package requires Python 3.5+ and is released under the General Public License version 3. Testing is done using pytest-3 in the base directory. Test files can be added to the tests/ directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.