|
__init__(self,
symtable=None,
writer=None,
use_numpy=True) |
source code
|
|
|
unimplemented(self,
node)
unimplemented nodes |
source code
|
|
|
raise_exception(self,
node,
exc=None,
msg='
' ,
expr=None,
lineno=None)
add an exception |
source code
|
|
|
parse(self,
text)
parse statement/expression to Ast representation |
source code
|
|
|
run(self,
node,
expr=None,
lineno=None,
with_raise=True)
executes parsed Ast representation for an expression |
source code
|
|
|
|
|
eval(self,
expr,
lineno=0,
show_errors=True)
evaluates a single statement |
source code
|
|
|
|
|
|
|
|
|
on_return(self,
node)
return statement: look for None, return special sentinal |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node_assign(self,
node,
val)
here we assign a value (not the node.value object) to a node this is
used by on_assign, but also by for, list comprehension, etc. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
on_subscript(self,
node)
subscript handling -- one of the tricky parts |
source code
|
|
|
|
|
|
|
|
|
|
|
on_compare(self,
node)
comparison operators |
source code
|
|
|
on_print(self,
node)
note: implements Python2 style print statement, not print() function. |
source code
|
|
|
_printer(self,
*out,
**kws)
generic print function |
source code
|
|
|
on_if(self,
node)
regular if-then-else statement |
source code
|
|
|
|
|
|
|
|
|
|
|
on_excepthandler(self,
node)
exception handler... |
source code
|
|
|
|
|
on_raise(self,
node)
raise statement: note difference for python 2 and 3 |
source code
|
|
|
|
|
on_arg(self,
node)
arg for function definitions |
source code
|
|
|
on_functiondef(self,
node)
define procedures |
source code
|
|