formulation3187%python.module
fault.vector

Parsing and processing tools for Vector Formulations.

collections
import

itertools0
import

functools0
import

ilevel0
import

Functions0
class

The default tool set for vector expansion transformations.

Functions__init__0
method

__init__(self, environ)

FunctionsSelect0
method

Select(self, fields)

Compose a vector generator from the expansion fields.

Functionsenv40%
method

env(self, name, default)

Override the fields with the identified environment variable.

Functionsquoted0
method

quoted(self, string)

Surround the string with quotations and replace any occurrence with two.

Functionsbracketed20%
method

bracketed(self, string)

Surround the string with brackets.

Functionsresuffix60%
method

resuffix(self, replacement, string)

Replace the dot-suffix at the end of the string with the designated replacement.

Functionssuffix20%
method

suffix(self, extension, string)

Append a dot-suffix to the string.

Functionsprefix180%
method

prefix(self, prefix, string)

Force the string to have the given prefix.

Context0
class

Composition data structure holding the conclusions and constants.

Primarily providing the compose interface for producing the final command constructors.

Context__init__0
method

__init__(self, conclusions, constants)

Initialize the context identifying the set of available conditions.

Contextconstraint670%
method

constraint(self, cset, matches, vparam)

Contextresolve390%
classmethod

resolve(Class, vf, vq, vi, index, slices)

Contextproduction489%
method

production(self, index, vf, vq, vp, vs, query)

Contextcompose292%
method

compose(self, index, selection, *argv)

Compose a command constructor with respect to self.

Contextchain0
method

chain(self, query, index, selection)

Compose and command constructor and evaluate it with respect to query.

parameters0
function

parameters(string)

Identify bracketed areas for substitution.

quotations0
function

quotations(args)

Isolate quotations within a vector expression. Quotations have the highest precedence and must be isolated first.

instruction196%
function

instruction(lineno, line)

Recognize the vector instruction present on a given line.

segments0
function

segments(lines)

Isolate the given lines into segments identified by the unindented line leading an indentation of text. The segments contain the indentations in the order presented by the iterator.

structure0
function

structure(origin, iterlines)

Structure the formatted vector expressions into a mapping identifying the distinct sequences.

parse0
function

parse(text)

Split the text into lines and return the structure form.