em¶
A system for processing Python via markup embeded in text.
Functions
|
Write some details, using the details subsystem if available. |
|
Do a self-contained expansion of the given source data, creating and shutting down an interpreter dedicated to the task. |
|
Run a standalone instance of an EmPy interpreter with the given globals, config, and output (any of which can be None). |
|
Is this string a valid identifier? If first is true, make sure the first character is a valid starting identifier character. |
|
|
|
Convert value to a (Unicode) string. |
|
Return a wide Unicode string literal. |
|
Update the base dictionary with a dictionary or list of tuples delta. |
Classes
|
A backquote markup: |
|
The abstract base class for a token that supports codings. |
|
A generic high-level processing command. |
|
The abstract base class for the comment tokens. |
|
The configuration encapsulates all the defaults and parameterized behavior of an interpreter. |
|
A simple interpreter context, storing only the current data. |
|
A context line change markup: |
|
A context name change markup: |
|
A base class for the context tokens. |
|
A control markup: |
|
A core encapsulates the functionality of the underlying language (Python by default). |
|
Define a Python variable. |
|
A simple class which wraps around a delegate file-like object and lets everything through. |
|
A diacritic markup: |
|
The representation of an active diversion. |
|
Read and execute an EmPy document. |
|
An emoji markup: |
|
An escape markup: |
|
Execute a Python statement. |
|
The abstract base class for execution tokens (expressions, statements, controls, etc.) |
|
A token that involves an expansion. |
|
An expression markup: |
|
|
|
An extension token, used for all customizable markup: @((...)), @[[...]], @{{...}}, @<...>, etc. |
|
Turn a first character sequence into a token class. |
|
An abstract filelike object. |
|
Load an execute a Python file. |
|
An icon markup: |
|
Import a Python module. |
|
An in-place markup: |
|
|
|
An interpreter can process chunks of EmPy code. |
|
A line comment markup: ``@# . |
|
The abstract base class of the literal tokens. |
|
The abstraction of an emoji module that may or may not be available for usage. |
|
A simple class that supports all the file-like object methods but simply does nothing at all. |
|
A plugin is an object owned by an interpreter that has a back-reference to it. |
|
A prefix markup: |
|
The proxy file object that is intended to take the place of sys.stdout. |
|
The root class of all EmPy class hierarchies. |
|
A scanner holds a buffer for lookahead parsing and has the ability to scan for special symbols and indicators in that buffer. |
|
A significator markup: ``@%. |
|
A simple expression markup: |
|
A simple stack that is implemented as a sequence. |
|
A statement markup: |
|
A wrapper around an (output) file object which supports diversions and filtering. |
|
Define a Python string variable. |
|
A string token markup: |
|
A chunk of text not containing markups. |
|
An element resulting from parsing. |
|
A delegating file class that lets through everything except close calls, which it turns into a flush. |
|
An enumerated type representing version detail levels. |
|
A whitespace markup: |
Exceptions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|