synt.stmt.assign
¤
Assignment
¤
Bases: Statement
Assignment statement.
Examples:
Source code in synt/stmt/assign.py
__init__
¤
|
Initialize a new assignment statement.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target |
IntoExpression
|
The variable to be assigned to. |
required |
type
¤
|
Set the target's type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ty |
IntoExpression
|
The type of the target variable. |
required |
assign
¤
|
Set the target's value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
v |
IntoExpression
|
The value of the assignment. |
required |