neurolang.expression_walker

Functions

expression_iterator(expression[, ...])

Iterate traversing expression tree.

expression_iterator_constant(current_element)

fix_children_order(dfs, expression, children)

Classes

ChainedWalker(*walkers)

Methods

EntryPointPatternWalker(*args, **kwargs)

Pattern walker with an entrypoint.

ExpressionBasicEvaluator(*args, **kwargs)

Attributes:

ExpressionWalker(*args, **kwargs)

Walks through an expression and each of its arguments

FunctionApplicationToPythonLambda(*args, ...)

Convert a FunctionApplication expression with constant functor into a python lambda expression where the symbols are the parameters.

IdentityWalker(*args, **kwargs)

Walks through expresssions without doing a thing.

PatternWalker(*args, **kwargs)

Attributes:

ReplaceExpressionWalker(symbol_replacements)

Attributes:

ReplaceExpressionsByValues(symbol_table)

Attributes:

ReplaceSymbolWalker(symbol_replacements)

Attributes:

ReplaceSymbolsByConstants(symbol_table)

Attributes:

ResolveSymbolMixin(*args, **kwargs)

Attributes:

TypedSymbolTableEvaluator([symbol_table])

Attributes:

TypedSymbolTableEvaluatorMixin([symbol_table])

Attributes: