Package lepl :: Package core :: Module rewriters :: Class Memoize
[hide private]
[frames] | no frames]

Class Memoize

source code


A rewriter that adds the given memoizer to all nodes in the matcher graph.
Instance Methods [hide private]
 
__init__(self, memoizer)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, graph) source code

Inherited from Rewriter: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __str__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from Rewriter: COMPILE_REGEXP, COMPOSE_TRANSFORMS, DIRECT_EVALUATION, FLATTEN, FULL_FIRST_MATCH, LEXER, MEMOIZE, OPTIMIZE_OR, SET_ARGUMENTS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, memoizer)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self, graph)
(Call operator)

source code 
Overrides: Rewriter.__call__