A model representing an assignment statement in ASL.
An example rendering would be: REG0 = '01'.
| Properties | Type | Description |
|---|---|---|
| _meta | Meta |
See
Meta
for more information.
|
| _type |
|
|
| val◊ | BinaryOp |
The value to be assigned in the statement.
See
definitions.expression in
BinaryOp
for more information.
|
| var◊ |
oneOf [
]
|
The value to be assigned to in the statement.
oneOf SquareOp
oneOf ArrayAccessOp
oneOf DotAtom
oneOf Identifier
oneOf Concat
oneOf Tuple
oneOf Function
|
|
||
|
||
{
"_type": "AST.Assignment",
"var": {
"_type": "AST.Identifier",
"value": "REG0"
},
"val": {
"_type": "Values.Value",
"value": "'01'",
"meaning": null
}
}
{
"info": [
"A model representing an assignment statement in ASL.",
"An example rendering would be: `REG0 = '01'`."
],
"additionalProperties": false,
"examples": [
{
"_type": "AST.Assignment",
"var": {
"_type": "AST.Identifier",
"value": "REG0"
},
"val": {
"_type": "Values.Value",
"value": "'01'",
"meaning": null
}
}
],
"properties": {
"_meta": {
"$ref": "../Meta.json"
},
"_type": {
"enum": [
"AST.Assignment"
]
},
"var": {
"info": [
"The value to be assigned to in the statement."
],
"oneOf": [
{
"$ref": "SquareOp.json"
},
{
"$ref": "ArrayAccessOp.json"
},
{
"$ref": "DotAtom.json"
},
{
"$ref": "Identifier.json"
},
{
"$ref": "Concat.json"
},
{
"$ref": "Tuple.json"
},
{
"$ref": "Function.json"
}
]
},
"val": {
"info": [
"The value to be assigned in the statement."
],
"$ref": "BinaryOp.json#/definitions/expression"
}
},
"required": [
"var",
"val"
],
"type": "object",
"title": "Assignment",
"$schema": "http://json-schema.org/draft-04/schema#"
}