Python-ast.h File Reference

Classes

struct  _mod
 
struct  _stmt
 
struct  _expr
 
struct  _comprehension
 
struct  _excepthandler
 
struct  _arguments
 
struct  _arg
 
struct  _keyword
 
struct  _alias
 
struct  _withitem
 
struct  _type_ignore
 

Macros

#define Module(a0, a1, a2)
 
#define Interactive(a0, a1)
 
#define Expression(a0, a1)
 
#define FunctionType(a0, a1, a2)
 
#define FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
 
#define AsyncFunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
 
#define ClassDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)
 
#define Return(a0, a1, a2, a3, a4, a5)
 
#define Delete(a0, a1, a2, a3, a4, a5)
 
#define Assign(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define AugAssign(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define AnnAssign(a0, a1, a2, a3, a4, a5, a6, a7, a8)
 
#define For(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)
 
#define AsyncFor(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)
 
#define While(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define If(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define With(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define AsyncWith(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Raise(a0, a1, a2, a3, a4, a5, a6)
 
#define Try(a0, a1, a2, a3, a4, a5, a6, a7, a8)
 
#define Assert(a0, a1, a2, a3, a4, a5, a6)
 
#define Import(a0, a1, a2, a3, a4, a5)
 
#define ImportFrom(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Global(a0, a1, a2, a3, a4, a5)
 
#define Nonlocal(a0, a1, a2, a3, a4, a5)
 
#define Expr(a0, a1, a2, a3, a4, a5)
 
#define Pass(a0, a1, a2, a3, a4)
 
#define Break(a0, a1, a2, a3, a4)
 
#define Continue(a0, a1, a2, a3, a4)
 
#define BoolOp(a0, a1, a2, a3, a4, a5, a6)
 
#define NamedExpr(a0, a1, a2, a3, a4, a5, a6)
 
#define BinOp(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define UnaryOp(a0, a1, a2, a3, a4, a5, a6)
 
#define Lambda(a0, a1, a2, a3, a4, a5, a6)
 
#define IfExp(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Dict(a0, a1, a2, a3, a4, a5, a6)
 
#define Set(a0, a1, a2, a3, a4, a5)
 
#define ListComp(a0, a1, a2, a3, a4, a5, a6)
 
#define SetComp(a0, a1, a2, a3, a4, a5, a6)
 
#define DictComp(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define GeneratorExp(a0, a1, a2, a3, a4, a5, a6)
 
#define Await(a0, a1, a2, a3, a4, a5)
 
#define Yield(a0, a1, a2, a3, a4, a5)
 
#define YieldFrom(a0, a1, a2, a3, a4, a5)
 
#define Compare(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Call(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define FormattedValue(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define JoinedStr(a0, a1, a2, a3, a4, a5)
 
#define Constant(a0, a1, a2, a3, a4, a5, a6)
 
#define Attribute(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Subscript(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define Starred(a0, a1, a2, a3, a4, a5, a6)
 
#define Name(a0, a1, a2, a3, a4, a5, a6)
 
#define List(a0, a1, a2, a3, a4, a5, a6)
 
#define Tuple(a0, a1, a2, a3, a4, a5, a6)
 
#define Slice(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define comprehension(a0, a1, a2, a3, a4)
 
#define ExceptHandler(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define arguments(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define arg(a0, a1, a2, a3, a4, a5, a6, a7)
 
#define keyword(a0, a1, a2, a3, a4, a5, a6)
 
#define alias(a0, a1, a2)
 
#define withitem(a0, a1, a2)
 
#define TypeIgnore(a0, a1, a2)
 

Typedefs

typedef struct _modmod_ty
 
typedef struct _stmtstmt_ty
 
typedef struct _exprexpr_ty
 
typedef enum _expr_context expr_context_ty
 
typedef enum _boolop boolop_ty
 
typedef enum _operator operator_ty
 
typedef enum _unaryop unaryop_ty
 
typedef enum _cmpop cmpop_ty
 
typedef struct _comprehensioncomprehension_ty
 
typedef struct _excepthandlerexcepthandler_ty
 
typedef struct _argumentsarguments_ty
 
typedef struct _argarg_ty
 
typedef struct _keywordkeyword_ty
 
typedef struct _aliasalias_ty
 
typedef struct _withitemwithitem_ty
 
typedef struct _type_ignoretype_ignore_ty
 

Enumerations

enum  _expr_context {
  Load ,
  Store ,
  Del
}
 
enum  _boolop {
  And ,
  Or
}
 
enum  _operator {
  Add ,
  Sub ,
  Mult ,
  MatMult ,
  Div ,
  Mod ,
  Pow ,
  LShift ,
  RShift ,
  BitOr ,
  BitXor ,
  BitAnd ,
  FloorDiv
}
 
enum  _unaryop {
  Invert ,
  Not ,
  UAdd ,
  USub
}
 
enum  _cmpop {
  Eq ,
  NotEq ,
  Lt ,
  LtE ,
  Gt ,
  GtE ,
  Is ,
  IsNot ,
  In ,
  NotIn
}
 
enum  _mod_kind {
  Module_kind ,
  Interactive_kind ,
  Expression_kind ,
  FunctionType_kind
}
 
enum  _stmt_kind {
  FunctionDef_kind ,
  AsyncFunctionDef_kind ,
  ClassDef_kind ,
  Return_kind ,
  Delete_kind ,
  Assign_kind ,
  AugAssign_kind ,
  AnnAssign_kind ,
  For_kind ,
  AsyncFor_kind ,
  While_kind ,
  If_kind ,
  With_kind ,
  AsyncWith_kind ,
  Raise_kind ,
  Try_kind ,
  Assert_kind ,
  Import_kind ,
  ImportFrom_kind ,
  Global_kind ,
  Nonlocal_kind ,
  Expr_kind ,
  Pass_kind ,
  Break_kind ,
  Continue_kind
}
 
enum  _expr_kind {
  BoolOp_kind ,
  NamedExpr_kind ,
  BinOp_kind ,
  UnaryOp_kind ,
  Lambda_kind ,
  IfExp_kind ,
  Dict_kind ,
  Set_kind ,
  ListComp_kind ,
  SetComp_kind ,
  DictComp_kind ,
  GeneratorExp_kind ,
  Await_kind ,
  Yield_kind ,
  YieldFrom_kind ,
  Compare_kind ,
  Call_kind ,
  FormattedValue_kind ,
  JoinedStr_kind ,
  Constant_kind ,
  Attribute_kind ,
  Subscript_kind ,
  Starred_kind ,
  Name_kind ,
  List_kind ,
  Tuple_kind ,
  Slice_kind
}
 
enum  _excepthandler_kind { ExceptHandler_kind }
 
enum  _type_ignore_kind { TypeIgnore_kind }
 

Functions

mod_ty _Py_Module (asdl_seq *body, asdl_seq *type_ignores, PyArena *arena)
 
mod_ty _Py_Interactive (asdl_seq *body, PyArena *arena)
 
mod_ty _Py_Expression (expr_ty body, PyArena *arena)
 
mod_ty _Py_FunctionType (asdl_seq *argtypes, expr_ty returns, PyArena *arena)
 
stmt_ty _Py_FunctionDef (identifier name, arguments_ty args, asdl_seq *body, asdl_seq *decorator_list, expr_ty returns, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_AsyncFunctionDef (identifier name, arguments_ty args, asdl_seq *body, asdl_seq *decorator_list, expr_ty returns, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_ClassDef (identifier name, asdl_seq *bases, asdl_seq *keywords, asdl_seq *body, asdl_seq *decorator_list, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Return (expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Delete (asdl_seq *targets, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Assign (asdl_seq *targets, expr_ty value, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_AugAssign (expr_ty target, operator_ty op, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_AnnAssign (expr_ty target, expr_ty annotation, expr_ty value, int simple, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_For (expr_ty target, expr_ty iter, asdl_seq *body, asdl_seq *orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_AsyncFor (expr_ty target, expr_ty iter, asdl_seq *body, asdl_seq *orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_While (expr_ty test, asdl_seq *body, asdl_seq *orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_If (expr_ty test, asdl_seq *body, asdl_seq *orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_With (asdl_seq *items, asdl_seq *body, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_AsyncWith (asdl_seq *items, asdl_seq *body, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Raise (expr_ty exc, expr_ty cause, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Try (asdl_seq *body, asdl_seq *handlers, asdl_seq *orelse, asdl_seq *finalbody, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Assert (expr_ty test, expr_ty msg, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Import (asdl_seq *names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_ImportFrom (identifier module, asdl_seq *names, int level, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Global (asdl_seq *names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Nonlocal (asdl_seq *names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Expr (expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Pass (int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Break (int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
stmt_ty _Py_Continue (int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_BoolOp (boolop_ty op, asdl_seq *values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_NamedExpr (expr_ty target, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_BinOp (expr_ty left, operator_ty op, expr_ty right, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_UnaryOp (unaryop_ty op, expr_ty operand, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Lambda (arguments_ty args, expr_ty body, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_IfExp (expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Dict (asdl_seq *keys, asdl_seq *values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Set (asdl_seq *elts, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_ListComp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_SetComp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_DictComp (expr_ty key, expr_ty value, asdl_seq *generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_GeneratorExp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Await (expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Yield (expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_YieldFrom (expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Compare (expr_ty left, asdl_int_seq *ops, asdl_seq *comparators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Call (expr_ty func, asdl_seq *args, asdl_seq *keywords, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_FormattedValue (expr_ty value, int conversion, expr_ty format_spec, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_JoinedStr (asdl_seq *values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Constant (constant value, string kind, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Attribute (expr_ty value, identifier attr, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Subscript (expr_ty value, expr_ty slice, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Starred (expr_ty value, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Name (identifier id, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_List (asdl_seq *elts, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Tuple (asdl_seq *elts, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
expr_ty _Py_Slice (expr_ty lower, expr_ty upper, expr_ty step, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
comprehension_ty _Py_comprehension (expr_ty target, expr_ty iter, asdl_seq *ifs, int is_async, PyArena *arena)
 
excepthandler_ty _Py_ExceptHandler (expr_ty type, identifier name, asdl_seq *body, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
arguments_ty _Py_arguments (asdl_seq *posonlyargs, asdl_seq *args, arg_ty vararg, asdl_seq *kwonlyargs, asdl_seq *kw_defaults, arg_ty kwarg, asdl_seq *defaults, PyArena *arena)
 
arg_ty _Py_arg (identifier arg, expr_ty annotation, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
keyword_ty _Py_keyword (identifier arg, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena)
 
alias_ty _Py_alias (identifier name, identifier asname, PyArena *arena)
 
withitem_ty _Py_withitem (expr_ty context_expr, expr_ty optional_vars, PyArena *arena)
 
type_ignore_ty _Py_TypeIgnore (int lineno, string tag, PyArena *arena)
 
PyObjectPyAST_mod2obj (mod_ty t)
 
mod_ty PyAST_obj2mod (PyObject *ast, PyArena *arena, int mode)
 
int PyAST_Check (PyObject *obj)
 

Macro Definition Documentation

◆ Module

#define Module (   a0,
  a1,
  a2 
)

◆ Interactive

#define Interactive (   a0,
  a1 
)

◆ Expression

#define Expression (   a0,
  a1 
)

◆ FunctionType

#define FunctionType (   a0,
  a1,
  a2 
)

◆ FunctionDef

#define FunctionDef (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8,
  a9,
  a10 
)

◆ AsyncFunctionDef

#define AsyncFunctionDef (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8,
  a9,
  a10 
)

◆ ClassDef

#define ClassDef (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8,
  a9 
)

◆ Return

#define Return (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Delete

#define Delete (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Assign

#define Assign (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ AugAssign

#define AugAssign (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ AnnAssign

#define AnnAssign (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8 
)

◆ For

#define For (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8,
  a9 
)

◆ AsyncFor

#define AsyncFor (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8,
  a9 
)

◆ While

#define While (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ If

#define If (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ With

#define With (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ AsyncWith

#define AsyncWith (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Raise

#define Raise (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Try

#define Try (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7,
  a8 
)

◆ Assert

#define Assert (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Import

#define Import (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ ImportFrom

#define ImportFrom (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Global

#define Global (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Nonlocal

#define Nonlocal (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Expr

#define Expr (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Pass

#define Pass (   a0,
  a1,
  a2,
  a3,
  a4 
)

◆ Break

#define Break (   a0,
  a1,
  a2,
  a3,
  a4 
)

◆ Continue

#define Continue (   a0,
  a1,
  a2,
  a3,
  a4 
)

◆ BoolOp

#define BoolOp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ NamedExpr

#define NamedExpr (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ BinOp

#define BinOp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ UnaryOp

#define UnaryOp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Lambda

#define Lambda (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ IfExp

#define IfExp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Dict

#define Dict (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Set

#define Set (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ ListComp

#define ListComp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ SetComp

#define SetComp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ DictComp

#define DictComp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ GeneratorExp

#define GeneratorExp (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Await

#define Await (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Yield

#define Yield (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ YieldFrom

#define YieldFrom (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Compare

#define Compare (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Call

#define Call (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ FormattedValue

#define FormattedValue (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ JoinedStr

#define JoinedStr (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)

◆ Constant

#define Constant (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Attribute

#define Attribute (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Subscript

#define Subscript (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ Starred

#define Starred (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Name

#define Name (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ List

#define List (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Tuple

#define Tuple (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ Slice

#define Slice (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ comprehension

#define comprehension (   a0,
  a1,
  a2,
  a3,
  a4 
)

◆ ExceptHandler

#define ExceptHandler (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ arguments

#define arguments (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ arg

#define arg (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)

◆ keyword

#define keyword (   a0,
  a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)

◆ alias

#define alias (   a0,
  a1,
  a2 
)

◆ withitem

#define withitem (   a0,
  a1,
  a2 
)

◆ TypeIgnore

#define TypeIgnore (   a0,
  a1,
  a2 
)

Typedef Documentation

◆ mod_ty

typedef struct _mod* mod_ty

◆ stmt_ty

typedef struct _stmt* stmt_ty

◆ expr_ty

typedef struct _expr* expr_ty

◆ expr_context_ty

◆ boolop_ty

typedef enum _boolop boolop_ty

◆ operator_ty

typedef enum _operator operator_ty

◆ unaryop_ty

typedef enum _unaryop unaryop_ty

◆ cmpop_ty

typedef enum _cmpop cmpop_ty

◆ comprehension_ty

◆ excepthandler_ty

◆ arguments_ty

typedef struct _arguments* arguments_ty

◆ arg_ty

typedef struct _arg* arg_ty

◆ keyword_ty

typedef struct _keyword* keyword_ty

◆ alias_ty

typedef struct _alias* alias_ty

◆ withitem_ty

typedef struct _withitem* withitem_ty

◆ type_ignore_ty

typedef struct _type_ignore* type_ignore_ty

Enumeration Type Documentation

◆ _expr_context

Enumerator
Load 
Store 
Del 

◆ _boolop

enum _boolop
Enumerator
And 
Or 

◆ _operator

enum _operator
Enumerator
Add 
Sub 
Mult 
MatMult 
Div 
Mod 
Pow 
LShift 
RShift 
BitOr 
BitXor 
BitAnd 
FloorDiv 

◆ _unaryop

enum _unaryop
Enumerator
Invert 
Not 
UAdd 
USub 

◆ _cmpop

enum _cmpop
Enumerator
Eq 
NotEq 
Lt 
LtE 
Gt 
GtE 
Is 
IsNot 
In 
NotIn 

◆ _mod_kind

enum _mod_kind
Enumerator
Module_kind 
Interactive_kind 
Expression_kind 
FunctionType_kind 

◆ _stmt_kind

enum _stmt_kind
Enumerator
FunctionDef_kind 
AsyncFunctionDef_kind 
ClassDef_kind 
Return_kind 
Delete_kind 
Assign_kind 
AugAssign_kind 
AnnAssign_kind 
For_kind 
AsyncFor_kind 
While_kind 
If_kind 
With_kind 
AsyncWith_kind 
Raise_kind 
Try_kind 
Assert_kind 
Import_kind 
ImportFrom_kind 
Global_kind 
Nonlocal_kind 
Expr_kind 
Pass_kind 
Break_kind 
Continue_kind 

◆ _expr_kind

enum _expr_kind
Enumerator
BoolOp_kind 
NamedExpr_kind 
BinOp_kind 
UnaryOp_kind 
Lambda_kind 
IfExp_kind 
Dict_kind 
Set_kind 
ListComp_kind 
SetComp_kind 
DictComp_kind 
GeneratorExp_kind 
Await_kind 
Yield_kind 
YieldFrom_kind 
Compare_kind 
Call_kind 
FormattedValue_kind 
JoinedStr_kind 
Constant_kind 
Attribute_kind 
Subscript_kind 
Starred_kind 
Name_kind 
List_kind 
Tuple_kind 
Slice_kind 

◆ _excepthandler_kind

Enumerator
ExceptHandler_kind 

◆ _type_ignore_kind

Enumerator
TypeIgnore_kind 

Function Documentation

◆ _Py_Module()

mod_ty _Py_Module ( asdl_seq body,
asdl_seq type_ignores,
PyArena arena 
)

◆ _Py_Interactive()

mod_ty _Py_Interactive ( asdl_seq body,
PyArena arena 
)

◆ _Py_Expression()

mod_ty _Py_Expression ( expr_ty  body,
PyArena arena 
)

◆ _Py_FunctionType()

mod_ty _Py_FunctionType ( asdl_seq argtypes,
expr_ty  returns,
PyArena arena 
)

◆ _Py_FunctionDef()

stmt_ty _Py_FunctionDef ( identifier  name,
arguments_ty  args,
asdl_seq body,
asdl_seq decorator_list,
expr_ty  returns,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_AsyncFunctionDef()

stmt_ty _Py_AsyncFunctionDef ( identifier  name,
arguments_ty  args,
asdl_seq body,
asdl_seq decorator_list,
expr_ty  returns,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_ClassDef()

stmt_ty _Py_ClassDef ( identifier  name,
asdl_seq bases,
asdl_seq keywords,
asdl_seq body,
asdl_seq decorator_list,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Return()

stmt_ty _Py_Return ( expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Delete()

stmt_ty _Py_Delete ( asdl_seq targets,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Assign()

stmt_ty _Py_Assign ( asdl_seq targets,
expr_ty  value,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_AugAssign()

stmt_ty _Py_AugAssign ( expr_ty  target,
operator_ty  op,
expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_AnnAssign()

stmt_ty _Py_AnnAssign ( expr_ty  target,
expr_ty  annotation,
expr_ty  value,
int  simple,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_For()

stmt_ty _Py_For ( expr_ty  target,
expr_ty  iter,
asdl_seq body,
asdl_seq orelse,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_AsyncFor()

stmt_ty _Py_AsyncFor ( expr_ty  target,
expr_ty  iter,
asdl_seq body,
asdl_seq orelse,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_While()

stmt_ty _Py_While ( expr_ty  test,
asdl_seq body,
asdl_seq orelse,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_If()

stmt_ty _Py_If ( expr_ty  test,
asdl_seq body,
asdl_seq orelse,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_With()

stmt_ty _Py_With ( asdl_seq items,
asdl_seq body,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_AsyncWith()

stmt_ty _Py_AsyncWith ( asdl_seq items,
asdl_seq body,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Raise()

stmt_ty _Py_Raise ( expr_ty  exc,
expr_ty  cause,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Try()

stmt_ty _Py_Try ( asdl_seq body,
asdl_seq handlers,
asdl_seq orelse,
asdl_seq finalbody,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Assert()

stmt_ty _Py_Assert ( expr_ty  test,
expr_ty  msg,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Import()

stmt_ty _Py_Import ( asdl_seq names,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_ImportFrom()

stmt_ty _Py_ImportFrom ( identifier  module,
asdl_seq names,
int  level,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Global()

stmt_ty _Py_Global ( asdl_seq names,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Nonlocal()

stmt_ty _Py_Nonlocal ( asdl_seq names,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Expr()

stmt_ty _Py_Expr ( expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Pass()

stmt_ty _Py_Pass ( int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Break()

stmt_ty _Py_Break ( int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Continue()

stmt_ty _Py_Continue ( int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_BoolOp()

expr_ty _Py_BoolOp ( boolop_ty  op,
asdl_seq values,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_NamedExpr()

expr_ty _Py_NamedExpr ( expr_ty  target,
expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_BinOp()

expr_ty _Py_BinOp ( expr_ty  left,
operator_ty  op,
expr_ty  right,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_UnaryOp()

expr_ty _Py_UnaryOp ( unaryop_ty  op,
expr_ty  operand,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Lambda()

expr_ty _Py_Lambda ( arguments_ty  args,
expr_ty  body,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_IfExp()

expr_ty _Py_IfExp ( expr_ty  test,
expr_ty  body,
expr_ty  orelse,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Dict()

expr_ty _Py_Dict ( asdl_seq keys,
asdl_seq values,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Set()

expr_ty _Py_Set ( asdl_seq elts,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_ListComp()

expr_ty _Py_ListComp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_SetComp()

expr_ty _Py_SetComp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_DictComp()

expr_ty _Py_DictComp ( expr_ty  key,
expr_ty  value,
asdl_seq generators,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_GeneratorExp()

expr_ty _Py_GeneratorExp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Await()

expr_ty _Py_Await ( expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Yield()

expr_ty _Py_Yield ( expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_YieldFrom()

expr_ty _Py_YieldFrom ( expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Compare()

expr_ty _Py_Compare ( expr_ty  left,
asdl_int_seq ops,
asdl_seq comparators,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Call()

expr_ty _Py_Call ( expr_ty  func,
asdl_seq args,
asdl_seq keywords,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_FormattedValue()

expr_ty _Py_FormattedValue ( expr_ty  value,
int  conversion,
expr_ty  format_spec,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_JoinedStr()

expr_ty _Py_JoinedStr ( asdl_seq values,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Constant()

expr_ty _Py_Constant ( constant  value,
string  kind,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Attribute()

expr_ty _Py_Attribute ( expr_ty  value,
identifier  attr,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Subscript()

expr_ty _Py_Subscript ( expr_ty  value,
expr_ty  slice,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Starred()

expr_ty _Py_Starred ( expr_ty  value,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Name()

expr_ty _Py_Name ( identifier  id,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_List()

expr_ty _Py_List ( asdl_seq elts,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Tuple()

expr_ty _Py_Tuple ( asdl_seq elts,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_Slice()

expr_ty _Py_Slice ( expr_ty  lower,
expr_ty  upper,
expr_ty  step,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_comprehension()

comprehension_ty _Py_comprehension ( expr_ty  target,
expr_ty  iter,
asdl_seq ifs,
int  is_async,
PyArena arena 
)

◆ _Py_ExceptHandler()

excepthandler_ty _Py_ExceptHandler ( expr_ty  type,
identifier  name,
asdl_seq body,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_arguments()

arguments_ty _Py_arguments ( asdl_seq posonlyargs,
asdl_seq args,
arg_ty  vararg,
asdl_seq kwonlyargs,
asdl_seq kw_defaults,
arg_ty  kwarg,
asdl_seq defaults,
PyArena arena 
)

◆ _Py_arg()

arg_ty _Py_arg ( identifier  arg,
expr_ty  annotation,
string  type_comment,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_keyword()

keyword_ty _Py_keyword ( identifier  arg,
expr_ty  value,
int  lineno,
int  col_offset,
int  end_lineno,
int  end_col_offset,
PyArena arena 
)

◆ _Py_alias()

alias_ty _Py_alias ( identifier  name,
identifier  asname,
PyArena arena 
)

◆ _Py_withitem()

withitem_ty _Py_withitem ( expr_ty  context_expr,
expr_ty  optional_vars,
PyArena arena 
)

◆ _Py_TypeIgnore()

type_ignore_ty _Py_TypeIgnore ( int  lineno,
string  tag,
PyArena arena 
)

◆ PyAST_mod2obj()

PyObject* PyAST_mod2obj ( mod_ty  t)

◆ PyAST_obj2mod()

mod_ty PyAST_obj2mod ( PyObject ast,
PyArena arena,
int  mode 
)

◆ PyAST_Check()

int PyAST_Check ( PyObject obj)