◐ Shell
clean mode source ↗

rustpython_parser::ast::ExpressionType - Rust

A certain type of expression.

Fields of BoolOp

A binary operation on two operands.

Fields of Binop

Subscript operation.

Fields of Subscript

An unary operation.

Fields of Unop

An await expression.

Fields of Await

A yield expression.

Fields of Yield

Fields of YieldFrom

A chained comparison. Note that in python you can use 1 < a < 10 for example.

Fields of Compare

Attribute access in the form of value.name.

Fields of Attribute

A call expression.

Fields of Call

A numeric literal.

Fields of Number

A list literal value.

Fields of List

A tuple literal value.

Fields of Tuple

A dict literal value. For example: {2: 'two', 3: 'three'}

Fields of Dict

A set literal.

Fields of Set

Fields of Comprehension

A starred expression.

Fields of Starred

A slice expression.

Fields of Slice

A string literal.

Fields of String

A bytes literal.

Fields of Bytes

An identifier, designating a certain variable or type.

Fields of Identifier

A lambda function expression.

Fields of Lambda

An if-expression.

Fields of IfExpression

The literal 'True'.

The literal 'False'.

The ellipsis literal ....