_expr Struct Reference

_expr Struct Reference

#include <Python-ast.h>

Class Description

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

Public Attributes

enum _expr_kind kind
 
union {
   struct {
      boolop_ty   op
 
      asdl_seq *   values
 
   }   BoolOp
 
   struct {
      expr_ty   left
 
      operator_ty   op
 
      expr_ty   right
 
   }   BinOp
 
   struct {
      unaryop_ty   op
 
      expr_ty   operand
 
   }   UnaryOp
 
   struct {
      arguments_ty   args
 
      expr_ty   body
 
   }   Lambda
 
   struct {
      expr_ty   test
 
      expr_ty   body
 
      expr_ty   orelse
 
   }   IfExp
 
   struct {
      asdl_seq *   keys
 
      asdl_seq *   values
 
   }   Dict
 
   struct {
      asdl_seq *   elts
 
   }   Set
 
   struct {
      expr_ty   elt
 
      asdl_seq *   generators
 
   }   ListComp
 
   struct {
      expr_ty   elt
 
      asdl_seq *   generators
 
   }   SetComp
 
   struct {
      expr_ty   key
 
      expr_ty   value
 
      asdl_seq *   generators
 
   }   DictComp
 
   struct {
      expr_ty   elt
 
      asdl_seq *   generators
 
   }   GeneratorExp
 
   struct {
      expr_ty   value
 
   }   Yield
 
   struct {
      expr_ty   left
 
      asdl_int_seq *   ops
 
      asdl_seq *   comparators
 
   }   Compare
 
   struct {
      expr_ty   func
 
      asdl_seq *   args
 
      asdl_seq *   keywords
 
      expr_ty   starargs
 
      expr_ty   kwargs
 
   }   Call
 
   struct {
      expr_ty   value
 
   }   Repr
 
   struct {
      object   n
 
   }   Num
 
   struct {
      string   s
 
   }   Str
 
   struct {
      expr_ty   value
 
      identifier   attr
 
      expr_context_ty   ctx
 
   }   Attribute
 
   struct {
      expr_ty   value
 
      slice_ty   slice
 
      expr_context_ty   ctx
 
   }   Subscript
 
   struct {
      identifier   id
 
      expr_context_ty   ctx
 
   }   Name
 
   struct {
      asdl_seq *   elts
 
      expr_context_ty   ctx
 
   }   List
 
   struct {
      asdl_seq *   elts
 
      expr_context_ty   ctx
 
   }   Tuple
 
v
 
int lineno
 
int col_offset
 

Member Data Documentation

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

asdl_seq* args

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

identifier attr

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

struct { ... } Attribute
struct { ... } BinOp
expr_ty body

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

struct { ... } BoolOp
struct { ... } Call
int col_offset

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

asdl_seq* comparators

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

struct { ... } Compare

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

struct { ... } Dict
struct { ... } DictComp
expr_ty elt

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

asdl_seq* elts

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

expr_ty func

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

struct { ... } GeneratorExp
asdl_seq* generators

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

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

struct { ... } IfExp
expr_ty key

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

asdl_seq* keys

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

asdl_seq* keywords

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

enum _expr_kind kind

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

expr_ty kwargs

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

struct { ... } Lambda
expr_ty left

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

int lineno

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

struct { ... } List
struct { ... } ListComp
object n

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

struct { ... } Name
struct { ... } Num

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

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

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

expr_ty operand

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

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

expr_ty orelse

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

struct { ... } Repr
expr_ty right

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

string s

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

struct { ... } Set
struct { ... } SetComp
slice_ty slice

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

expr_ty starargs

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

struct { ... } Str
struct { ... } Subscript
expr_ty test

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

struct { ... } Tuple
struct { ... } UnaryOp
union { ... } v
expr_ty value

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

asdl_seq* values

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

struct { ... } Yield

The documentation for this struct was generated from the following file: