AARCHMRS Schema 2.7.4

↚ Home

References.Reference object

A reference to a Register, usually from expanding a RegisterArray.

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
References.Reference
ref
anyOf [
]

The name of the Register this reference is referring to.

Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "References.Reference", 
    "ref": {
        "_type": "AST.Identifier", 
        "value": "REG_EL1"
    }
}
{
    "_type": "References.Reference", 
    "ref": {
        "_type": "AST.Identifier", 
        "value": "REG7_EL2"
    }
}

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

{
  "additionalProperties": false,
  "info": [
    "A reference to a Register, usually from expanding a RegisterArray."
  ],
  "examples": [
    {
      "_type": "References.Reference",
      "ref": {
        "_type": "AST.Identifier",
        "value": "REG_EL1"
      }
    },
    {
      "_type": "References.Reference",
      "ref": {
        "_type": "AST.Identifier",
        "value": "REG7_EL2"
      }
    }
  ],
  "properties": {
    "_meta": {
      "$ref": "../Meta.json"
    },
    "_type": {
      "enum": [
        "References.Reference"
      ]
    },
    "ref": {
      "info": [
        "The name of the Register this reference is referring to."
      ],
      "anyOf": [
        {
          "$ref": "../Types/RegisterType.json"
        },
        {
          "$ref": "../AST/DotAtom.json"
        },
        {
          "$ref": "../AST/Identifier.json"
        },
        {
          "$ref": "../AST/SquareOp.json"
        }
      ]
    }
  },
  "required": [
    "ref"
  ],
  "title": "Reference",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#"
}