Open Search
    _expr Struct Reference

    #include <Python-ast.h>

    Public Attributes

    enum _expr_kind kind
     
    union {
       struct {
          boolop_ty   op
     
          asdl_seq *   values
     
       }   BoolOp
     
       struct {
          expr_ty   target
     
          expr_ty   value
     
       }   NamedExpr
     
       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
     
       }   Await
     
       struct {
          expr_ty   value
     
       }   Yield
     
       struct {
          expr_ty   value
     
       }   YieldFrom
     
       struct {
          expr_ty   left
     
          asdl_int_seq *   ops
     
          asdl_seq *   comparators
     
       }   Compare
     
       struct {
          expr_ty   func
     
          asdl_seq *   args
     
          asdl_seq *   keywords
     
       }   Call
     
       struct {
          expr_ty   value
     
          int   conversion
     
          expr_ty   format_spec
     
       }   FormattedValue
     
       struct {
          asdl_seq *   values
     
       }   JoinedStr
     
       struct {
          constant   value
     
          string   kind
     
       }   Constant
     
       struct {
          expr_ty   value
     
          identifier   attr
     
          expr_context_ty   ctx
     
       }   Attribute
     
       struct {
          expr_ty   value
     
          expr_ty   slice
     
          expr_context_ty   ctx
     
       }   Subscript
     
       struct {
          expr_ty   value
     
          expr_context_ty   ctx
     
       }   Starred
     
       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
     
       struct {
          expr_ty   lower
     
          expr_ty   upper
     
          expr_ty   step
     
       }   Slice
     
    v
     
    int lineno
     
    int col_offset
     
    int end_lineno
     
    int end_col_offset
     

    Member Data Documentation

    ◆ kind [1/2]

    enum _expr_kind kind

    ◆ op [1/3]

    ◆ values

    asdl_seq* values

    ◆ 

    struct { ... } BoolOp

    ◆ target

    expr_ty target

    ◆ value [1/2]

    expr_ty value

    ◆ 

    struct { ... } NamedExpr

    ◆ left

    expr_ty left

    ◆ op [2/3]

    ◆ right

    expr_ty right

    ◆ 

    struct { ... } BinOp

    ◆ op [3/3]

    ◆ operand

    expr_ty operand

    ◆ 

    struct { ... } UnaryOp

    ◆ args [1/2]

    ◆ body

    expr_ty body

    ◆ 

    struct { ... } Lambda

    ◆ test

    expr_ty test

    ◆ orelse

    expr_ty orelse

    ◆ 

    struct { ... } IfExp

    ◆ keys

    asdl_seq* keys

    ◆ 

    struct { ... } Dict

    ◆ elts

    asdl_seq* elts

    ◆ 

    struct { ... } Set

    ◆ elt

    expr_ty elt

    ◆ generators

    asdl_seq* generators

    ◆ 

    struct { ... } ListComp

    ◆ 

    struct { ... } SetComp

    ◆ key

    expr_ty key

    ◆ 

    struct { ... } DictComp

    ◆ 

    struct { ... } GeneratorExp

    ◆ 

    struct { ... } Await

    ◆ 

    struct { ... } Yield

    ◆ 

    struct { ... } YieldFrom

    ◆ ops

    ◆ comparators

    asdl_seq* comparators

    ◆ 

    struct { ... } Compare

    ◆ func

    expr_ty func

    ◆ args [2/2]

    asdl_seq* args

    ◆ keywords

    asdl_seq* keywords

    ◆ 

    struct { ... } Call

    ◆ conversion

    int conversion

    ◆ format_spec

    expr_ty format_spec

    ◆ 

    struct { ... } FormattedValue

    ◆ 

    struct { ... } JoinedStr

    ◆ value [2/2]

    constant value

    ◆ kind [2/2]

    string kind

    ◆ 

    struct { ... } Constant

    ◆ attr

    identifier attr

    ◆ ctx

    ◆ 

    struct { ... } Attribute

    ◆ slice

    expr_ty slice

    ◆ 

    struct { ... } Subscript

    ◆ 

    struct { ... } Starred

    ◆ id

    ◆ 

    struct { ... } Name

    ◆ 

    struct { ... } List

    ◆ 

    struct { ... } Tuple

    ◆ lower

    expr_ty lower

    ◆ upper

    expr_ty upper

    ◆ step

    expr_ty step

    ◆ 

    struct { ... } Slice

    ◆ 

    union { ... } v

    ◆ lineno

    int lineno

    ◆ col_offset

    int col_offset

    ◆ end_lineno

    int end_lineno

    ◆ end_col_offset

    int end_col_offset