High level API for CST synthess.
This module is modelled after the AST node API ( see chap. 19.3.1 of
the Python docs)
|
|
|
CST_Comparison(arg1,
op,
arg2) |
|
|
|
|
|
CST_AugAssign(var,
augass,
val) |
|
|
|
|
|
|
|
|
|
|
|
|
|
CST_FloorDiv(fst,
snd,
*args) |
|
|
|
CST_BitAnd(fst,
snd,
*args) |
|
|
|
CST_BitOr(fst,
snd,
*args) |
|
|
|
CST_BitXor(fst,
snd,
*args) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CST_CallFunc(name_or_atom,
args=[ ] ,
star_args=None,
dstar_args=None)
Instead of a name an atom is allowed as well. |
|
|
|
CST_GetAttr(expr,
name)
(EXPR, str | NAME ) -> CST (expr.name) of power |
|
|
|
CST_List(*args)
(EXPR, EXPR, ...) -> CST( [] ) of atom |
|
|
|
CST_Tuple(*args)
(EXPR, EXPR, ...) -> CST( () ) of atom |
|
|
|
CST_Dict(**dct)
{EXPR:EXPR, ...) -> CST( {} ) of atom |
|
|
|
CST_ParametersFromSignature(sig) |
|
|
|
CST_FuncParameters(argnames,
defaults={ } ,
star_args=None,
dstar_args=None) |
|
|
|
CST_Function(name,
SUITE,
argnames,
defaults={ } ,
star_args=None,
dstar_args=None) |
|
|
|
CST_Subscript(expression,
sub,
*subs)
Maps to expr[sub1,sub2,...,subn] only |
|
|
|
|
|
|
|
CST_Except(arg1,
arg2=None) |
|
|
|
CST_TryExcept(try_suite,
else_suite=None,
*args) |
|
|
|
CST_TryFinally(try_suite,
finally_suite) |
|
|
|
|
|
|
|
|
|
|