AARCHMRS Schema 2.7.4

↚ Home

AST.Assignment object

A model representing an assignment statement in ASL.

An example rendering would be: REG0 = '01'.

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
AST.Assignment
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 DotAtom
oneOf Identifier
oneOf Concat
oneOf Tuple
oneOf Function
Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "AST.Assignment", 
    "var": {
        "_type": "AST.Identifier", 
        "value": "REG0"
    }, 
    "val": {
        "_type": "Values.Value", 
        "value": "'01'", 
        "meaning": null
    }
}

Schema http://json-schema.org/draft-04/schema#

{
  "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#"
}