| Trees | Indices | Help |
|
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Method used to check whether a particular transformer has to be removed.
|
Adds one LangletTransformer instance.
|
For a node id return the corresponding node ids of all active langlets.
|
Used to determine whether a node has a certain node id. This method generalizes the naive check on node[0] == nid. If the node can be guaranteed to be not a Python node this check is performed directly otherwise a test on the nrange of the node id is performed.
|
Seek for appropriate node handler using node id and ranging.
|
Method used to apply settings on nodes having node id's that correspond with node handlers. If relevant node N was found wrap N into a cstnode object and set :
N.transformable = True
|
Unmark all nodes i.e. set N.transformable = False on all cstnode objects.
|
Call node transformer.
|
|
Let (parent(tree), parent(parent(tree)), ..., parent(...(parent(tree))...)) the parental hierarchy of tree. It can be denoted as (P1, ..., P(n)) where P(i) is the node id of the i-th grandparent of tree. The substitution algorithm seeks for P(i) with repl_id in nrange(P(i)). If found it replaces P(i) in P(i+1) with nodes = (N1, ..., N(k)). It is guaranteed that the node id of N(j) == repl_id. |
Main transformation loop. Dispatches one node to node handlers decorated by @transform. The dispatched node gets replaced by the result of the node handler.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 13 16:31:31 2008 | http://epydoc.sourceforge.net |