Enum python_parser::ast::Expression[][src]

pub enum Expression {
    Ellipsis,
    None,
    True,
    False,
    Name(Name),
    Int(IntegerType),
    ImaginaryInt(IntegerType),
    Float(f64),
    ImaginaryFloat(f64),
    String(Vec<PyString>),
    Bytes(Vec<u8>),
    DictLiteral(Vec<DictItem>),
    SetLiteral(Vec<SetItem>),
    ListLiteral(Vec<SetItem>),
    TupleLiteral(Vec<SetItem>),
    DictComp(Box<DictItem>, Vec<ComprehensionChunk>),
    SetComp(Box<SetItem>, Vec<ComprehensionChunk>),
    ListComp(Box<SetItem>, Vec<ComprehensionChunk>),
    Generator(Box<SetItem>, Vec<ComprehensionChunk>),
    Call(Box<Expression>, Vec<Argument>),
    Subscript(Box<Expression>, Vec<Subscript>),
    Attribute(Box<Expression>, Name),
    Uop(UopBox<Expression>),
    Bop(BopBox<Expression>, Box<Expression>),
    MultiBop(Box<Expression>, Vec<(Bop, Expression)>),
    Ternary(Box<Expression>, Box<Expression>, Box<Expression>),
    Yield(Vec<Expression>),
    YieldFrom(Box<Expression>),
    Star(Box<Expression>),
    Lambdef(UntypedArgsListBox<Expression>),
}

The big thing: a Python expression.

Variants

foo.bar

Unary operator

Binary operator. A simplified version of MultiBop, when the expressivity of MultiBop is not needed.

Binary operator... but may be applied on more than one expr (eg. a <= b < c)

1 if 2 else 3

Trait Implementations

impl Clone for Expression
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Expression
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Expression
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Expression

impl Sync for Expression