Table of Contents
A system for processing Python as markup embedded in text.
expand ( _data, _globals=None, _arguments=None, _config=None, **_locals, )
Do an atomic expansion of the given source data, creating and shutting down an interpreter dedicated to the task. The sys.stdout object is saved off and then replaced before this function returns.
info ( table )
invoke ( args )
Run a standalone instance of an EmPy interpeter.
main ()
usage ( verbose=True )
Print usage information.
BreakFlow
A break control flow.
CommentInlineToken
An inline comment markup.
CommentLineToken
A full line comment markup.
Configuration
The configuration encapsulates all the defaults and standard
ConfigurationError
An error associated with a configuration.
ConsistencyError
An expected implementation constrant was violated.
Context
An interpreter context, which encapsulates a name, an input
ContextLineToken
A context line change markup.
ContextNameToken
A context name change markup.
ContinueFlow
A continue control flow.
ControlToken
A control token.
CustomError
An error concerning custom markups occurred.
CustomToken
A custom markup.
DeclaratorToken
A declarator markup.
Diversion
The representation of an active diversion. Diversions act as
DiversionError
An error related to diversions.
Error
The base class for all EmPy errors.
EscapeToken
An escape markup.
ExpansionToken
A token that involves an expansion.
ExpressionToken
An expression markup.
Filter
An abstract filter.
FlowError
An exception related to control flow.
Hook
The base class for implementing hooks.
InPlaceToken
An in-place markup.
Interpreter
An interpreter can process chunks of EmPy code.
LiteralToken
A literal markup.
MetaError
A wrapper around a real Python exception for including a copy of
NullFile
A simple class that supports all the file-like object methods
NullToken
A chunk of data not containing markups.
ParseError
A parse error occurred.
PrefixToken
A prefix markup.
ProxyFile
The proxy file object that is intended to take the place of
ReprToken
A repr markup.
Resolver
An entity for resolving resources.
Resource
An individual resource.
Scanner
A scanner holds a buffer for lookahead parsing and has the
SignificatorToken
A significator markup.
SimpleExpressionToken
A simple expression markup.
Stack
A simple stack that behaves as a sequence (with 0 being the top
StackUnderflowError
A stack underflow.
StatementToken
A statement markup.
Stream
A wrapper around an (output) file object which supports
StringLiteralToken
A string token markup.
Token
An element of expansion.
TransientParseError
A parse error occurred which may be resolved by feeding more data.
UncloseableFile
A simple class which wraps around a delegate file-like object
VerboseHook
A verbose hook that reports all information received by the
WhitespaceToken
A whitespace markup.