Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
jinja2.compiler Namespace Reference

Classes

class  CodeGenerator
 
class  CompilerExit
 
class  DependencyFinderVisitor
 
class  Frame
 
class  MacroRef
 
class  UndeclaredNameVisitor
 
class  VisitorExit
 

Functions

optimizeconst (F f)
 
t.Callable[["CodeGenerator", nodes.BinExpr, "Frame"], None] _make_binop (str op)
 
t.Callable[["CodeGenerator", nodes.UnaryExpr, "Frame"], None] _make_unop (str op)
 
t.Optional[str] generate (nodes.Template node, "Environment" environment, t.Optional[str] name, t.Optional[str] filename, t.Optional[t.TextIO] stream=None, bool defer_init=False, bool optimized=True)
 
bool has_safe_repr (t.Any value)
 
t.Set[str] find_undeclared (t.Iterable[nodes.Node] nodes, t.Iterable[str] names)
 

Variables

 F = t.TypeVar("F", bound=t.Callable[..., t.Any])
 
dict operators
 

Detailed Description

Compiles nodes from the parser into Python code.

Function Documentation

◆ find_undeclared()

t.Set[str] jinja2.compiler.find_undeclared ( t.Iterable[nodes.Node nodes,
t.Iterable[str]   names 
)
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.

◆ generate()

t.Optional[str] jinja2.compiler.generate ( nodes.Template  node,
"Environment"  environment,
t.Optional[str]  name,
t.Optional[str]  filename,
t.Optional[t.TextIO]   stream = None,
bool   defer_init = False,
bool   optimized = True 
)
Generate the python source for a node tree.

◆ has_safe_repr()

bool jinja2.compiler.has_safe_repr ( t.Any  value)
Does the node have a safe representation?

Variable Documentation

◆ operators

dict jinja2.compiler.operators
Initial value:
1= {
2 "eq": "==",
3 "ne": "!=",
4 "gt": ">",
5 "gteq": ">=",
6 "lt": "<",
7 "lteq": "<=",
8 "in": "in",
9 "notin": "not in",
10}