module documentation
Compiles nodes from the parser into Python code.
Class |
|
No class docstring; 0/1 property, 0/25 instance variable, 0/12 class variable, 35/91 methods, 1/1 static method, 0/1 class documented |
Class |
|
Raised if the compiler encountered a situation where it just doesn't make sense to further process the code. Any block that raises such an exception is not further processed. |
Class |
|
A visitor that collects filter and test calls. |
Class |
|
Holds compile time information for us. |
Class |
|
Undocumented |
Class |
|
A visitor that checks if a name is accessed without being declared. This is different from the frame visitor as it will not stop at closure frames. |
Class |
|
Exception used by the `UndeclaredNameVisitor` to signal a stop. |
Function | find |
Check if the names passed are accessed undeclared. The return value is a set of all the undeclared names from the sequence of names found. |
Function | generate |
Generate the python source for a node tree. |
Function | has |
Does the node have a safe representation? |
Function | optimizeconst |
Undocumented |
Constant | F |
Undocumented |
Variable | operators |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Check if the names passed are accessed undeclared. The return value is a set of all the undeclared names from the sequence of names found.
Parameters | |
nodes:t.Iterable[ | Undocumented |
names:t.Iterable[ | Undocumented |
Returns | |
t.Set[ | Undocumented |
def generate(node, environment, name, filename, stream=None, defer_init=False, optimized=True):
(source)
Generate the python source for a node tree.
Parameters | |
node:nodes.Template | Undocumented |
environment:Environment | Undocumented |
name:t.Optional[ | Undocumented |
filename:t.Optional[ | Undocumented |
stream:t.Optional[ | Undocumented |
deferbool | Undocumented |
optimized:bool | Undocumented |
Returns | |
t.Optional[ | Undocumented |
Undocumented
Parameters | |
op:str | Undocumented |
Returns | |
t.Callable[ | Undocumented |
Undocumented
Parameters | |
op:str | Undocumented |
Returns | |
t.Callable[ | Undocumented |