Back to index

python3.2  3.2.2
Classes | Defines | Typedefs | Enumerations | Functions
Python-ast.h File Reference
#include "asdl.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _mod
struct  _stmt
struct  _expr
struct  _slice
struct  _comprehension
struct  _excepthandler
struct  _arguments
struct  _arg
struct  _keyword
struct  _alias
union  _mod.v
struct  _mod.v.Module
struct  _mod.v.Interactive
struct  _mod.v.Expression
struct  _mod.v.Suite
union  _stmt.v
struct  _stmt.v.FunctionDef
struct  _stmt.v.ClassDef
struct  _stmt.v.Return
struct  _stmt.v.Delete
struct  _stmt.v.Assign
struct  _stmt.v.AugAssign
struct  _stmt.v.For
struct  _stmt.v.While
struct  _stmt.v.If
struct  _stmt.v.With
struct  _stmt.v.Raise
struct  _stmt.v.TryExcept
struct  _stmt.v.TryFinally
struct  _stmt.v.Assert
struct  _stmt.v.Import
struct  _stmt.v.ImportFrom
struct  _stmt.v.Global
struct  _stmt.v.Nonlocal
struct  _stmt.v.Expr
union  _expr.v
struct  _expr.v.BoolOp
struct  _expr.v.BinOp
struct  _expr.v.UnaryOp
struct  _expr.v.Lambda
struct  _expr.v.IfExp
struct  _expr.v.Dict
struct  _expr.v.Set
struct  _expr.v.ListComp
struct  _expr.v.SetComp
struct  _expr.v.DictComp
struct  _expr.v.GeneratorExp
struct  _expr.v.Yield
struct  _expr.v.Compare
struct  _expr.v.Call
struct  _expr.v.Num
struct  _expr.v.Str
struct  _expr.v.Bytes
struct  _expr.v.Attribute
struct  _expr.v.Subscript
struct  _expr.v.Starred
struct  _expr.v.Name
struct  _expr.v.List
struct  _expr.v.Tuple
union  _slice.v
struct  _slice.v.Slice
struct  _slice.v.ExtSlice
struct  _slice.v.Index
union  _excepthandler.v
struct  _excepthandler.v.ExceptHandler

Defines

#define Module(a0, a1)   _Py_Module(a0, a1)
#define Interactive(a0, a1)   _Py_Interactive(a0, a1)
#define Expression(a0, a1)   _Py_Expression(a0, a1)
#define Suite(a0, a1)   _Py_Suite(a0, a1)
#define FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7)   _Py_FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7)
#define ClassDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)   _Py_ClassDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)
#define Return(a0, a1, a2, a3)   _Py_Return(a0, a1, a2, a3)
#define Delete(a0, a1, a2, a3)   _Py_Delete(a0, a1, a2, a3)
#define Assign(a0, a1, a2, a3, a4)   _Py_Assign(a0, a1, a2, a3, a4)
#define AugAssign(a0, a1, a2, a3, a4, a5)   _Py_AugAssign(a0, a1, a2, a3, a4, a5)
#define For(a0, a1, a2, a3, a4, a5, a6)   _Py_For(a0, a1, a2, a3, a4, a5, a6)
#define While(a0, a1, a2, a3, a4, a5)   _Py_While(a0, a1, a2, a3, a4, a5)
#define If(a0, a1, a2, a3, a4, a5)   _Py_If(a0, a1, a2, a3, a4, a5)
#define With(a0, a1, a2, a3, a4, a5)   _Py_With(a0, a1, a2, a3, a4, a5)
#define Raise(a0, a1, a2, a3, a4)   _Py_Raise(a0, a1, a2, a3, a4)
#define TryExcept(a0, a1, a2, a3, a4, a5)   _Py_TryExcept(a0, a1, a2, a3, a4, a5)
#define TryFinally(a0, a1, a2, a3, a4)   _Py_TryFinally(a0, a1, a2, a3, a4)
#define Assert(a0, a1, a2, a3, a4)   _Py_Assert(a0, a1, a2, a3, a4)
#define Import(a0, a1, a2, a3)   _Py_Import(a0, a1, a2, a3)
#define ImportFrom(a0, a1, a2, a3, a4, a5)   _Py_ImportFrom(a0, a1, a2, a3, a4, a5)
#define Global(a0, a1, a2, a3)   _Py_Global(a0, a1, a2, a3)
#define Nonlocal(a0, a1, a2, a3)   _Py_Nonlocal(a0, a1, a2, a3)
#define Expr(a0, a1, a2, a3)   _Py_Expr(a0, a1, a2, a3)
#define Pass(a0, a1, a2)   _Py_Pass(a0, a1, a2)
#define Break(a0, a1, a2)   _Py_Break(a0, a1, a2)
#define Continue(a0, a1, a2)   _Py_Continue(a0, a1, a2)
#define BoolOp(a0, a1, a2, a3, a4)   _Py_BoolOp(a0, a1, a2, a3, a4)
#define BinOp(a0, a1, a2, a3, a4, a5)   _Py_BinOp(a0, a1, a2, a3, a4, a5)
#define UnaryOp(a0, a1, a2, a3, a4)   _Py_UnaryOp(a0, a1, a2, a3, a4)
#define Lambda(a0, a1, a2, a3, a4)   _Py_Lambda(a0, a1, a2, a3, a4)
#define IfExp(a0, a1, a2, a3, a4, a5)   _Py_IfExp(a0, a1, a2, a3, a4, a5)
#define Dict(a0, a1, a2, a3, a4)   _Py_Dict(a0, a1, a2, a3, a4)
#define Set(a0, a1, a2, a3)   _Py_Set(a0, a1, a2, a3)
#define ListComp(a0, a1, a2, a3, a4)   _Py_ListComp(a0, a1, a2, a3, a4)
#define SetComp(a0, a1, a2, a3, a4)   _Py_SetComp(a0, a1, a2, a3, a4)
#define DictComp(a0, a1, a2, a3, a4, a5)   _Py_DictComp(a0, a1, a2, a3, a4, a5)
#define GeneratorExp(a0, a1, a2, a3, a4)   _Py_GeneratorExp(a0, a1, a2, a3, a4)
#define Yield(a0, a1, a2, a3)   _Py_Yield(a0, a1, a2, a3)
#define Compare(a0, a1, a2, a3, a4, a5)   _Py_Compare(a0, a1, a2, a3, a4, a5)
#define Call(a0, a1, a2, a3, a4, a5, a6, a7)   _Py_Call(a0, a1, a2, a3, a4, a5, a6, a7)
#define Num(a0, a1, a2, a3)   _Py_Num(a0, a1, a2, a3)
#define Str(a0, a1, a2, a3)   _Py_Str(a0, a1, a2, a3)
#define Bytes(a0, a1, a2, a3)   _Py_Bytes(a0, a1, a2, a3)
#define Ellipsis(a0, a1, a2)   _Py_Ellipsis(a0, a1, a2)
#define Attribute(a0, a1, a2, a3, a4, a5)   _Py_Attribute(a0, a1, a2, a3, a4, a5)
#define Subscript(a0, a1, a2, a3, a4, a5)   _Py_Subscript(a0, a1, a2, a3, a4, a5)
#define Starred(a0, a1, a2, a3, a4)   _Py_Starred(a0, a1, a2, a3, a4)
#define Name(a0, a1, a2, a3, a4)   _Py_Name(a0, a1, a2, a3, a4)
#define List(a0, a1, a2, a3, a4)   _Py_List(a0, a1, a2, a3, a4)
#define Tuple(a0, a1, a2, a3, a4)   _Py_Tuple(a0, a1, a2, a3, a4)
#define Slice(a0, a1, a2, a3)   _Py_Slice(a0, a1, a2, a3)
#define ExtSlice(a0, a1)   _Py_ExtSlice(a0, a1)
#define Index(a0, a1)   _Py_Index(a0, a1)
#define comprehension(a0, a1, a2, a3)   _Py_comprehension(a0, a1, a2, a3)
#define ExceptHandler(a0, a1, a2, a3, a4, a5)   _Py_ExceptHandler(a0, a1, a2, a3, a4, a5)
#define arguments(a0, a1, a2, a3, a4, a5, a6, a7, a8)   _Py_arguments(a0, a1, a2, a3, a4, a5, a6, a7, a8)
#define arg(a0, a1, a2)   _Py_arg(a0, a1, a2)
#define keyword(a0, a1, a2)   _Py_keyword(a0, a1, a2)
#define alias(a0, a1, a2)   _Py_alias(a0, a1, a2)

Typedefs

typedef struct _modmod_ty
typedef struct _stmtstmt_ty
typedef struct _exprexpr_ty
typedef enum _expr_context expr_context_ty
typedef struct _sliceslice_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

Enumerations

enum  _expr_context {
  Load = 1, Store = 2, Del = 3, AugLoad = 4,
  AugStore = 5, Param = 6
}
enum  _boolop { And = 1, Or = 2 }
enum  _operator {
  Add = 1, Sub = 2, Mult = 3, Div = 4,
  Mod = 5, Pow = 6, LShift = 7, RShift = 8,
  BitOr = 9, BitXor = 10, BitAnd = 11, FloorDiv = 12
}
enum  _unaryop { Invert = 1, Not = 2, UAdd = 3, USub = 4 }
enum  _cmpop {
  Eq = 1, NotEq = 2, Lt = 3, LtE = 4,
  Gt = 5, GtE = 6, Is = 7, IsNot = 8,
  In = 9, NotIn = 10
}
enum  _mod_kind { Module_kind = 1, Interactive_kind = 2, Expression_kind = 3, Suite_kind = 4 }
enum  _stmt_kind {
  FunctionDef_kind = 1, ClassDef_kind = 2, Return_kind = 3, Delete_kind = 4,
  Assign_kind = 5, AugAssign_kind = 6, For_kind = 7, While_kind = 8,
  If_kind = 9, With_kind = 10, Raise_kind = 11, TryExcept_kind = 12,
  TryFinally_kind = 13, Assert_kind = 14, Import_kind = 15, ImportFrom_kind = 16,
  Global_kind = 17, Nonlocal_kind = 18, Expr_kind = 19, Pass_kind = 20,
  Break_kind = 21, Continue_kind = 22
}
enum  _expr_kind {
  BoolOp_kind = 1, BinOp_kind = 2, UnaryOp_kind = 3, Lambda_kind = 4,
  IfExp_kind = 5, Dict_kind = 6, Set_kind = 7, ListComp_kind = 8,
  SetComp_kind = 9, DictComp_kind = 10, GeneratorExp_kind = 11, Yield_kind = 12,
  Compare_kind = 13, Call_kind = 14, Num_kind = 15, Str_kind = 16,
  Bytes_kind = 17, Ellipsis_kind = 18, Attribute_kind = 19, Subscript_kind = 20,
  Starred_kind = 21, Name_kind = 22, List_kind = 23, Tuple_kind = 24
}
enum  _slice_kind { Slice_kind = 1, ExtSlice_kind = 2, Index_kind = 3 }
enum  _excepthandler_kind { ExceptHandler_kind = 1 }

Functions

mod_ty _Py_Module (asdl_seq *body, PyArena *arena)
mod_ty _Py_Interactive (asdl_seq *body, PyArena *arena)
mod_ty _Py_Expression (expr_ty body, PyArena *arena)
mod_ty _Py_Suite (asdl_seq *body, PyArena *arena)
stmt_ty _Py_FunctionDef (identifier name, arguments_ty args, asdl_seq *body, asdl_seq *decorator_list, expr_ty returns, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_ClassDef (identifier name, asdl_seq *bases, asdl_seq *keywords, expr_ty starargs, expr_ty kwargs, asdl_seq *body, asdl_seq *decorator_list, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Return (expr_ty value, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Delete (asdl_seq *targets, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Assign (asdl_seq *targets, expr_ty value, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_AugAssign (expr_ty target, operator_ty op, expr_ty value, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_For (expr_ty target, expr_ty iter, asdl_seq *body, asdl_seq *orelse, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_While (expr_ty test, asdl_seq *body, asdl_seq *orelse, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_If (expr_ty test, asdl_seq *body, asdl_seq *orelse, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_With (expr_ty context_expr, expr_ty optional_vars, asdl_seq *body, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Raise (expr_ty exc, expr_ty cause, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_TryExcept (asdl_seq *body, asdl_seq *handlers, asdl_seq *orelse, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_TryFinally (asdl_seq *body, asdl_seq *finalbody, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Assert (expr_ty test, expr_ty msg, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Import (asdl_seq *names, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_ImportFrom (identifier module, asdl_seq *names, int level, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Global (asdl_seq *names, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Nonlocal (asdl_seq *names, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Expr (expr_ty value, int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Pass (int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Break (int lineno, int col_offset, PyArena *arena)
stmt_ty _Py_Continue (int lineno, int col_offset, PyArena *arena)
expr_ty _Py_BoolOp (boolop_ty op, asdl_seq *values, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_BinOp (expr_ty left, operator_ty op, expr_ty right, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_UnaryOp (unaryop_ty op, expr_ty operand, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Lambda (arguments_ty args, expr_ty body, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_IfExp (expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Dict (asdl_seq *keys, asdl_seq *values, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Set (asdl_seq *elts, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_ListComp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_SetComp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_DictComp (expr_ty key, expr_ty value, asdl_seq *generators, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_GeneratorExp (expr_ty elt, asdl_seq *generators, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Yield (expr_ty value, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Compare (expr_ty left, asdl_int_seq *ops, asdl_seq *comparators, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Call (expr_ty func, asdl_seq *args, asdl_seq *keywords, expr_ty starargs, expr_ty kwargs, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Num (object n, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Str (string s, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Bytes (string s, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Ellipsis (int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Attribute (expr_ty value, identifier attr, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Subscript (expr_ty value, slice_ty slice, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Starred (expr_ty value, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Name (identifier id, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_List (asdl_seq *elts, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
expr_ty _Py_Tuple (asdl_seq *elts, expr_context_ty ctx, int lineno, int col_offset, PyArena *arena)
slice_ty _Py_Slice (expr_ty lower, expr_ty upper, expr_ty step, PyArena *arena)
slice_ty _Py_ExtSlice (asdl_seq *dims, PyArena *arena)
slice_ty _Py_Index (expr_ty value, PyArena *arena)
comprehension_ty _Py_comprehension (expr_ty target, expr_ty iter, asdl_seq *ifs, PyArena *arena)
excepthandler_ty _Py_ExceptHandler (expr_ty type, identifier name, asdl_seq *body, int lineno, int col_offset, PyArena *arena)
arguments_ty _Py_arguments (asdl_seq *args, identifier vararg, expr_ty varargannotation, asdl_seq *kwonlyargs, identifier kwarg, expr_ty kwargannotation, asdl_seq *defaults, asdl_seq *kw_defaults, PyArena *arena)
arg_ty _Py_arg (identifier arg, expr_ty annotation, PyArena *arena)
keyword_ty _Py_keyword (identifier arg, expr_ty value, PyArena *arena)
alias_ty _Py_alias (identifier name, identifier asname, PyArena *arena)
PyObjectPyAST_mod2obj (mod_ty t)
mod_ty PyAST_obj2mod (PyObject *ast, PyArena *arena, int mode)
int PyAST_Check (PyObject *obj)

Class Documentation

struct _mod

Definition at line 42 of file Python-ast.h.

Class Members
enum _mod_kind union _mod v
struct _stmt

Definition at line 71 of file Python-ast.h.

Class Members
int col_offset
int lineno
enum _stmt_kind union _stmt v
struct _expr

Definition at line 191 of file Python-ast.h.

Class Members
int col_offset
int lineno
enum _expr_kind union _expr v
struct _slice

Definition at line 319 of file Python-ast.h.

Class Members
enum _slice_kind union _slice v
struct _comprehension

Definition at line 339 of file Python-ast.h.

Collaboration diagram for _comprehension:
Class Members
asdl_seq * ifs
expr_ty iter
expr_ty target
struct _excepthandler

Definition at line 346 of file Python-ast.h.

Class Members
int col_offset
int lineno
enum _excepthandler_kind union
_excepthandler
v
struct _arguments

Definition at line 360 of file Python-ast.h.

Collaboration diagram for _arguments:
Class Members
asdl_seq * args
asdl_seq * defaults
asdl_seq * kw_defaults
identifier kwarg
expr_ty kwargannotation
asdl_seq * kwonlyargs
identifier vararg
expr_ty varargannotation
struct _arg

Definition at line 371 of file Python-ast.h.

Collaboration diagram for _arg:
Class Members
expr_ty annotation
identifier arg
struct _keyword

Definition at line 376 of file Python-ast.h.

Collaboration diagram for _keyword:
Class Members
identifier arg
expr_ty value
struct _alias

Definition at line 381 of file Python-ast.h.

Collaboration diagram for _alias:
Class Members
identifier asname
identifier name
union _mod.v

Definition at line 44 of file Python-ast.h.

Class Members
v Expression
v Interactive
v Module
v Suite
struct _mod.v.Module

Definition at line 45 of file Python-ast.h.

Class Members
asdl_seq * body
struct _mod.v.Interactive

Definition at line 49 of file Python-ast.h.

Class Members
asdl_seq * body
struct _mod.v.Expression

Definition at line 53 of file Python-ast.h.

Class Members
expr_ty body
struct _mod.v.Suite

Definition at line 57 of file Python-ast.h.

Class Members
asdl_seq * body
union _stmt.v

Definition at line 73 of file Python-ast.h.

Class Members
v Assert
v Assign
v AugAssign
v ClassDef
v Delete
v Expr
v For
v FunctionDef
v Global
v If
v Import
v ImportFrom
v Nonlocal
v Raise
v Return
v TryExcept
v TryFinally
v While
v With
struct _stmt.v.FunctionDef

Definition at line 74 of file Python-ast.h.

Class Members
arguments_ty args
asdl_seq * body
asdl_seq * decorator_list
identifier name
expr_ty returns
struct _stmt.v.ClassDef

Definition at line 82 of file Python-ast.h.

Class Members
asdl_seq * bases
asdl_seq * body
asdl_seq * decorator_list
asdl_seq * keywords
expr_ty kwargs
identifier name
expr_ty starargs
struct _stmt.v.Return

Definition at line 92 of file Python-ast.h.

Class Members
expr_ty value
struct _stmt.v.Delete

Definition at line 96 of file Python-ast.h.

Class Members
asdl_seq * targets
struct _stmt.v.Assign

Definition at line 100 of file Python-ast.h.

Class Members
asdl_seq * targets
expr_ty value
struct _stmt.v.AugAssign

Definition at line 105 of file Python-ast.h.

Class Members
operator_ty op
expr_ty target
expr_ty value
struct _stmt.v.For

Definition at line 111 of file Python-ast.h.

Class Members
asdl_seq * body
expr_ty iter
asdl_seq * orelse
expr_ty target
struct _stmt.v.While

Definition at line 118 of file Python-ast.h.

Class Members
asdl_seq * body
asdl_seq * orelse
expr_ty test
struct _stmt.v.If

Definition at line 124 of file Python-ast.h.

Class Members
asdl_seq * body
asdl_seq * orelse
expr_ty test
struct _stmt.v.With

Definition at line 130 of file Python-ast.h.

Class Members
asdl_seq * body
expr_ty context_expr
expr_ty optional_vars
struct _stmt.v.Raise

Definition at line 136 of file Python-ast.h.

Class Members
expr_ty cause
expr_ty exc
struct _stmt.v.TryExcept

Definition at line 141 of file Python-ast.h.

Class Members
asdl_seq * body
asdl_seq * handlers
asdl_seq * orelse
struct _stmt.v.TryFinally

Definition at line 147 of file Python-ast.h.

Class Members
asdl_seq * body
asdl_seq * finalbody
struct _stmt.v.Assert

Definition at line 152 of file Python-ast.h.

Class Members
expr_ty msg
expr_ty test
struct _stmt.v.Import

Definition at line 157 of file Python-ast.h.

Class Members
asdl_seq * names
struct _stmt.v.ImportFrom

Definition at line 161 of file Python-ast.h.

Class Members
int level
identifier module
asdl_seq * names
struct _stmt.v.Global

Definition at line 167 of file Python-ast.h.

Class Members
asdl_seq * names
struct _stmt.v.Nonlocal

Definition at line 171 of file Python-ast.h.

Class Members
asdl_seq * names
struct _stmt.v.Expr

Definition at line 175 of file Python-ast.h.

Class Members
expr_ty value
union _expr.v

Definition at line 193 of file Python-ast.h.

Class Members
v Attribute
v BinOp
v BoolOp
v Bytes
v Call
v Compare
v Dict
v DictComp
v GeneratorExp
v IfExp
v Lambda
v List
v ListComp
v Name
v Num
v Set
v SetComp
v Starred
v Str
v Subscript
v Tuple
v UnaryOp
v Yield
struct _expr.v.BoolOp

Definition at line 194 of file Python-ast.h.

Class Members
boolop_ty op
asdl_seq * values
struct _expr.v.BinOp

Definition at line 199 of file Python-ast.h.

Class Members
expr_ty left
operator_ty op
expr_ty right
struct _expr.v.UnaryOp

Definition at line 205 of file Python-ast.h.

Class Members
unaryop_ty op
expr_ty operand
struct _expr.v.Lambda

Definition at line 210 of file Python-ast.h.

Class Members
arguments_ty args
expr_ty body
struct _expr.v.IfExp

Definition at line 215 of file Python-ast.h.

Class Members
expr_ty body
expr_ty orelse
expr_ty test
struct _expr.v.Dict

Definition at line 221 of file Python-ast.h.

Class Members
asdl_seq * keys
asdl_seq * values
struct _expr.v.Set

Definition at line 226 of file Python-ast.h.

Class Members
asdl_seq * elts
struct _expr.v.ListComp

Definition at line 230 of file Python-ast.h.

Class Members
expr_ty elt
asdl_seq * generators
struct _expr.v.SetComp

Definition at line 235 of file Python-ast.h.

Class Members
expr_ty elt
asdl_seq * generators
struct _expr.v.DictComp

Definition at line 240 of file Python-ast.h.

Class Members
asdl_seq * generators
expr_ty key
expr_ty value
struct _expr.v.GeneratorExp

Definition at line 246 of file Python-ast.h.

Class Members
expr_ty elt
asdl_seq * generators
struct _expr.v.Yield

Definition at line 251 of file Python-ast.h.

Class Members
expr_ty value
struct _expr.v.Compare

Definition at line 255 of file Python-ast.h.

Class Members
asdl_seq * comparators
expr_ty left
asdl_int_seq * ops
struct _expr.v.Call

Definition at line 261 of file Python-ast.h.

Class Members
asdl_seq * args
expr_ty func
asdl_seq * keywords
expr_ty kwargs
expr_ty starargs
struct _expr.v.Num

Definition at line 269 of file Python-ast.h.

Class Members
object n
struct _expr.v.Str

Definition at line 273 of file Python-ast.h.

Class Members
string s
struct _expr.v.Bytes

Definition at line 277 of file Python-ast.h.

Class Members
string s
struct _expr.v.Attribute

Definition at line 281 of file Python-ast.h.

Class Members
identifier attr
expr_context_ty ctx
expr_ty value
struct _expr.v.Subscript

Definition at line 287 of file Python-ast.h.

Class Members
expr_context_ty ctx
slice_ty slice
expr_ty value
struct _expr.v.Starred

Definition at line 293 of file Python-ast.h.

Class Members
expr_context_ty ctx
expr_ty value
struct _expr.v.Name

Definition at line 298 of file Python-ast.h.

Class Members
expr_context_ty ctx
identifier id
struct _expr.v.List

Definition at line 303 of file Python-ast.h.

Class Members
expr_context_ty ctx
asdl_seq * elts
struct _expr.v.Tuple

Definition at line 308 of file Python-ast.h.

Class Members
expr_context_ty ctx
asdl_seq * elts
union _slice.v

Definition at line 321 of file Python-ast.h.

Class Members
v ExtSlice
v Index
v Slice
struct _slice.v.Slice

Definition at line 322 of file Python-ast.h.

Class Members
expr_ty lower
expr_ty step
expr_ty upper
struct _slice.v.ExtSlice

Definition at line 328 of file Python-ast.h.

Class Members
asdl_seq * dims
struct _slice.v.Index

Definition at line 332 of file Python-ast.h.

Class Members
expr_ty value
union _excepthandler.v

Definition at line 348 of file Python-ast.h.

Class Members
v ExceptHandler
struct _excepthandler.v.ExceptHandler

Definition at line 349 of file Python-ast.h.

Class Members
asdl_seq * body
identifier name
expr_ty type

Define Documentation

#define alias (   a0,
  a1,
  a2 
)    _Py_alias(a0, a1, a2)

Definition at line 548 of file Python-ast.h.

#define arg (   a0,
  a1,
  a2 
)    _Py_arg(a0, a1, a2)

Definition at line 544 of file Python-ast.h.

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

Definition at line 539 of file Python-ast.h.

#define Assert (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Assert(a0, a1, a2, a3, a4)

Definition at line 436 of file Python-ast.h.

#define Assign (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Assign(a0, a1, a2, a3, a4)

Definition at line 409 of file Python-ast.h.

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

Definition at line 508 of file Python-ast.h.

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

Definition at line 412 of file Python-ast.h.

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

Definition at line 462 of file Python-ast.h.

#define BoolOp (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_BoolOp(a0, a1, a2, a3, a4)

Definition at line 459 of file Python-ast.h.

#define Break (   a0,
  a1,
  a2 
)    _Py_Break(a0, a1, a2)

Definition at line 455 of file Python-ast.h.

#define Bytes (   a0,
  a1,
  a2,
  a3 
)    _Py_Bytes(a0, a1, a2, a3)

Definition at line 504 of file Python-ast.h.

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

Definition at line 496 of file Python-ast.h.

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

Definition at line 399 of file Python-ast.h.

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

Definition at line 493 of file Python-ast.h.

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

Definition at line 532 of file Python-ast.h.

#define Continue (   a0,
  a1,
  a2 
)    _Py_Continue(a0, a1, a2)

Definition at line 457 of file Python-ast.h.

#define Delete (   a0,
  a1,
  a2,
  a3 
)    _Py_Delete(a0, a1, a2, a3)

Definition at line 406 of file Python-ast.h.

#define Dict (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Dict(a0, a1, a2, a3, a4)

Definition at line 474 of file Python-ast.h.

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

Definition at line 485 of file Python-ast.h.

#define Ellipsis (   a0,
  a1,
  a2 
)    _Py_Ellipsis(a0, a1, a2)

Definition at line 506 of file Python-ast.h.

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

Definition at line 535 of file Python-ast.h.

#define Expr (   a0,
  a1,
  a2,
  a3 
)    _Py_Expr(a0, a1, a2, a3)

Definition at line 451 of file Python-ast.h.

#define Expression (   a0,
  a1 
)    _Py_Expression(a0, a1)

Definition at line 391 of file Python-ast.h.

#define ExtSlice (   a0,
  a1 
)    _Py_ExtSlice(a0, a1)

Definition at line 528 of file Python-ast.h.

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

Definition at line 415 of file Python-ast.h.

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

Definition at line 395 of file Python-ast.h.

#define GeneratorExp (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_GeneratorExp(a0, a1, a2, a3, a4)

Definition at line 488 of file Python-ast.h.

#define Global (   a0,
  a1,
  a2,
  a3 
)    _Py_Global(a0, a1, a2, a3)

Definition at line 445 of file Python-ast.h.

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

Definition at line 421 of file Python-ast.h.

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

Definition at line 471 of file Python-ast.h.

#define Import (   a0,
  a1,
  a2,
  a3 
)    _Py_Import(a0, a1, a2, a3)

Definition at line 439 of file Python-ast.h.

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

Definition at line 442 of file Python-ast.h.

#define Index (   a0,
  a1 
)    _Py_Index(a0, a1)

Definition at line 530 of file Python-ast.h.

#define Interactive (   a0,
  a1 
)    _Py_Interactive(a0, a1)

Definition at line 389 of file Python-ast.h.

#define keyword (   a0,
  a1,
  a2 
)    _Py_keyword(a0, a1, a2)

Definition at line 546 of file Python-ast.h.

#define Lambda (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Lambda(a0, a1, a2, a3, a4)

Definition at line 468 of file Python-ast.h.

#define List (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_List(a0, a1, a2, a3, a4)

Definition at line 520 of file Python-ast.h.

#define ListComp (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_ListComp(a0, a1, a2, a3, a4)

Definition at line 479 of file Python-ast.h.

#define Module (   a0,
  a1 
)    _Py_Module(a0, a1)

Definition at line 387 of file Python-ast.h.

#define Name (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Name(a0, a1, a2, a3, a4)

Definition at line 517 of file Python-ast.h.

#define Nonlocal (   a0,
  a1,
  a2,
  a3 
)    _Py_Nonlocal(a0, a1, a2, a3)

Definition at line 448 of file Python-ast.h.

#define Num (   a0,
  a1,
  a2,
  a3 
)    _Py_Num(a0, a1, a2, a3)

Definition at line 500 of file Python-ast.h.

#define Pass (   a0,
  a1,
  a2 
)    _Py_Pass(a0, a1, a2)

Definition at line 453 of file Python-ast.h.

#define Raise (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Raise(a0, a1, a2, a3, a4)

Definition at line 427 of file Python-ast.h.

#define Return (   a0,
  a1,
  a2,
  a3 
)    _Py_Return(a0, a1, a2, a3)

Definition at line 404 of file Python-ast.h.

#define Set (   a0,
  a1,
  a2,
  a3 
)    _Py_Set(a0, a1, a2, a3)

Definition at line 477 of file Python-ast.h.

#define SetComp (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_SetComp(a0, a1, a2, a3, a4)

Definition at line 482 of file Python-ast.h.

#define Slice (   a0,
  a1,
  a2,
  a3 
)    _Py_Slice(a0, a1, a2, a3)

Definition at line 526 of file Python-ast.h.

#define Starred (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Starred(a0, a1, a2, a3, a4)

Definition at line 514 of file Python-ast.h.

#define Str (   a0,
  a1,
  a2,
  a3 
)    _Py_Str(a0, a1, a2, a3)

Definition at line 502 of file Python-ast.h.

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

Definition at line 511 of file Python-ast.h.

#define Suite (   a0,
  a1 
)    _Py_Suite(a0, a1)

Definition at line 393 of file Python-ast.h.

#define TryExcept (   a0,
  a1,
  a2,
  a3,
  a4,
  a5 
)    _Py_TryExcept(a0, a1, a2, a3, a4, a5)

Definition at line 430 of file Python-ast.h.

#define TryFinally (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_TryFinally(a0, a1, a2, a3, a4)

Definition at line 433 of file Python-ast.h.

#define Tuple (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_Tuple(a0, a1, a2, a3, a4)

Definition at line 523 of file Python-ast.h.

#define UnaryOp (   a0,
  a1,
  a2,
  a3,
  a4 
)    _Py_UnaryOp(a0, a1, a2, a3, a4)

Definition at line 465 of file Python-ast.h.

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

Definition at line 418 of file Python-ast.h.

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

Definition at line 424 of file Python-ast.h.

#define Yield (   a0,
  a1,
  a2,
  a3 
)    _Py_Yield(a0, a1, a2, a3)

Definition at line 491 of file Python-ast.h.


Typedef Documentation

typedef struct _alias* alias_ty

Definition at line 37 of file Python-ast.h.

typedef struct _arg* arg_ty

Definition at line 33 of file Python-ast.h.

typedef struct _arguments* arguments_ty

Definition at line 31 of file Python-ast.h.

typedef enum _boolop boolop_ty
typedef enum _cmpop cmpop_ty

Definition at line 27 of file Python-ast.h.

Definition at line 29 of file Python-ast.h.

typedef struct _expr* expr_ty

Definition at line 9 of file Python-ast.h.

typedef struct _keyword* keyword_ty

Definition at line 35 of file Python-ast.h.

typedef struct _mod* mod_ty

Definition at line 5 of file Python-ast.h.

typedef enum _operator operator_ty
typedef struct _slice* slice_ty

Definition at line 14 of file Python-ast.h.

typedef struct _stmt* stmt_ty

Definition at line 7 of file Python-ast.h.

typedef enum _unaryop unaryop_ty

Enumeration Type Documentation

enum _boolop
Enumerator:
And 
Or 

Definition at line 16 of file Python-ast.h.

{ And=1, Or=2 } boolop_ty;
enum _cmpop
Enumerator:
Eq 
NotEq 
Lt 
LtE 
Gt 
GtE 
Is 
IsNot 
In 
NotIn 

Definition at line 24 of file Python-ast.h.

                    { Eq=1, NotEq=2, Lt=3, LtE=4, Gt=5, GtE=6, Is=7, IsNot=8,
                      In=9, NotIn=10 } cmpop_ty;
Enumerator:
ExceptHandler_kind 

Definition at line 345 of file Python-ast.h.

Enumerator:
Load 
Store 
Del 
AugLoad 
AugStore 
Param 

Definition at line 11 of file Python-ast.h.

enum _expr_kind
Enumerator:
BoolOp_kind 
BinOp_kind 
UnaryOp_kind 
Lambda_kind 
IfExp_kind 
Dict_kind 
Set_kind 
ListComp_kind 
SetComp_kind 
DictComp_kind 
GeneratorExp_kind 
Yield_kind 
Compare_kind 
Call_kind 
Num_kind 
Str_kind 
Bytes_kind 
Ellipsis_kind 
Attribute_kind 
Subscript_kind 
Starred_kind 
Name_kind 
List_kind 
Tuple_kind 

Definition at line 184 of file Python-ast.h.

enum _mod_kind
Enumerator:
Module_kind 
Interactive_kind 
Expression_kind 
Suite_kind 

Definition at line 40 of file Python-ast.h.

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

Definition at line 18 of file Python-ast.h.

                       { Add=1, Sub=2, Mult=3, Div=4, Mod=5, Pow=6, LShift=7,
                         RShift=8, BitOr=9, BitXor=10, BitAnd=11, FloorDiv=12 }
Enumerator:
Slice_kind 
ExtSlice_kind 
Index_kind 

Definition at line 318 of file Python-ast.h.

enum _stmt_kind
Enumerator:
FunctionDef_kind 
ClassDef_kind 
Return_kind 
Delete_kind 
Assign_kind 
AugAssign_kind 
For_kind 
While_kind 
If_kind 
With_kind 
Raise_kind 
TryExcept_kind 
TryFinally_kind 
Assert_kind 
Import_kind 
ImportFrom_kind 
Global_kind 
Nonlocal_kind 
Expr_kind 
Pass_kind 
Break_kind 
Continue_kind 

Definition at line 64 of file Python-ast.h.

enum _unaryop
Enumerator:
Invert 
Not 
UAdd 
USub 

Definition at line 22 of file Python-ast.h.

{ Invert=1, Not=2, UAdd=3, USub=4 } unaryop_ty;

Function Documentation

alias_ty _Py_alias ( identifier  name,
identifier  asname,
PyArena *  arena 
)
arg_ty _Py_arg ( identifier  arg,
expr_ty  annotation,
PyArena *  arena 
)
arguments_ty _Py_arguments ( asdl_seq args,
identifier  vararg,
expr_ty  varargannotation,
asdl_seq kwonlyargs,
identifier  kwarg,
expr_ty  kwargannotation,
asdl_seq defaults,
asdl_seq kw_defaults,
PyArena *  arena 
)
stmt_ty _Py_Assert ( expr_ty  test,
expr_ty  msg,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Assign ( asdl_seq targets,
expr_ty  value,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Attribute ( expr_ty  value,
identifier  attr,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_AugAssign ( expr_ty  target,
operator_ty  op,
expr_ty  value,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_BinOp ( expr_ty  left,
operator_ty  op,
expr_ty  right,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_BoolOp ( boolop_ty  op,
asdl_seq values,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Break ( int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Bytes ( string  s,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Call ( expr_ty  func,
asdl_seq args,
asdl_seq keywords,
expr_ty  starargs,
expr_ty  kwargs,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_ClassDef ( identifier  name,
asdl_seq bases,
asdl_seq keywords,
expr_ty  starargs,
expr_ty  kwargs,
asdl_seq body,
asdl_seq decorator_list,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Compare ( expr_ty  left,
asdl_int_seq ops,
asdl_seq comparators,
int  lineno,
int  col_offset,
PyArena *  arena 
)
comprehension_ty _Py_comprehension ( expr_ty  target,
expr_ty  iter,
asdl_seq ifs,
PyArena *  arena 
)
stmt_ty _Py_Continue ( int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Delete ( asdl_seq targets,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Dict ( asdl_seq keys,
asdl_seq values,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_DictComp ( expr_ty  key,
expr_ty  value,
asdl_seq generators,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Ellipsis ( int  lineno,
int  col_offset,
PyArena *  arena 
)
excepthandler_ty _Py_ExceptHandler ( expr_ty  type,
identifier  name,
asdl_seq body,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Expr ( expr_ty  value,
int  lineno,
int  col_offset,
PyArena *  arena 
)
mod_ty _Py_Expression ( expr_ty  body,
PyArena *  arena 
)
slice_ty _Py_ExtSlice ( asdl_seq dims,
PyArena *  arena 
)
stmt_ty _Py_For ( expr_ty  target,
expr_ty  iter,
asdl_seq body,
asdl_seq orelse,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_FunctionDef ( identifier  name,
arguments_ty  args,
asdl_seq body,
asdl_seq decorator_list,
expr_ty  returns,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_GeneratorExp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Global ( asdl_seq names,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_If ( expr_ty  test,
asdl_seq body,
asdl_seq orelse,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_IfExp ( expr_ty  test,
expr_ty  body,
expr_ty  orelse,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Import ( asdl_seq names,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_ImportFrom ( identifier  module,
asdl_seq names,
int  level,
int  lineno,
int  col_offset,
PyArena *  arena 
)
slice_ty _Py_Index ( expr_ty  value,
PyArena *  arena 
)
mod_ty _Py_Interactive ( asdl_seq body,
PyArena *  arena 
)
keyword_ty _Py_keyword ( identifier  arg,
expr_ty  value,
PyArena *  arena 
)
expr_ty _Py_Lambda ( arguments_ty  args,
expr_ty  body,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_List ( asdl_seq elts,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_ListComp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
PyArena *  arena 
)
mod_ty _Py_Module ( asdl_seq body,
PyArena *  arena 
)
expr_ty _Py_Name ( identifier  id,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Nonlocal ( asdl_seq names,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Num ( object  n,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Pass ( int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Raise ( expr_ty  exc,
expr_ty  cause,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_Return ( expr_ty  value,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Set ( asdl_seq elts,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_SetComp ( expr_ty  elt,
asdl_seq generators,
int  lineno,
int  col_offset,
PyArena *  arena 
)
slice_ty _Py_Slice ( expr_ty  lower,
expr_ty  upper,
expr_ty  step,
PyArena *  arena 
)
expr_ty _Py_Starred ( expr_ty  value,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Str ( string  s,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Subscript ( expr_ty  value,
slice_ty  slice,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
mod_ty _Py_Suite ( asdl_seq body,
PyArena *  arena 
)
stmt_ty _Py_TryExcept ( asdl_seq body,
asdl_seq handlers,
asdl_seq orelse,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_TryFinally ( asdl_seq body,
asdl_seq finalbody,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Tuple ( asdl_seq elts,
expr_context_ty  ctx,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_UnaryOp ( unaryop_ty  op,
expr_ty  operand,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_While ( expr_ty  test,
asdl_seq body,
asdl_seq orelse,
int  lineno,
int  col_offset,
PyArena *  arena 
)
stmt_ty _Py_With ( expr_ty  context_expr,
expr_ty  optional_vars,
asdl_seq body,
int  lineno,
int  col_offset,
PyArena *  arena 
)
expr_ty _Py_Yield ( expr_ty  value,
int  lineno,
int  col_offset,
PyArena *  arena 
)
int PyAST_Check ( PyObject obj)

Definition at line 6994 of file Python-ast.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 6962 of file Python-ast.c.

{
    init_types();
    return ast2obj_mod(t);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 6969 of file Python-ast.c.

{
    mod_ty res;
    PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type,
                            (PyObject*)Interactive_type};
    char *req_name[] = {"Module", "Expression", "Interactive"};
    int isinstance;
    assert(0 <= mode && mode <= 2);

    init_types();

    isinstance = PyObject_IsInstance(ast, req_type[mode]);
    if (isinstance == -1)
        return NULL;
    if (!isinstance) {
        PyErr_Format(PyExc_TypeError, "expected %s node, got %.400s",
                     req_name[mode], Py_TYPE(ast)->tp_name);
        return NULL;
    }
    if (obj2ast_mod(ast, &res, arena) != 0)
        return NULL;
    else
        return res;
}

Here is the call graph for this function:

Here is the caller graph for this function: