AARCHMRS Schema 2.5.3

↚ Home

AST.Identifier object

An AST model wrapper for an identifier, such as REG0 or a32.

definition

Definitions Type Description
c_identifier_regex
  • string
Pattern
/^[a-zA-Z_][a-zA-Z0-9_]*$/
regex
  • string
Pattern
/^([a-zA-Z_][a-zA-Z0-9_]*(<[^>]+>)?[a-zA-Z0-9_]*$)/

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
AST.Identifier
value

The string value of this identifier.

See definitions.regex for more information.
Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "AST.Identifier", 
    "value": "REG0"
}
{
    "_type": "AST.Identifier", 
    "value": "A32"
}

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

{
  "info": [
    "An AST model wrapper for an identifier, such as `REG0` or `a32`."
  ],
  "definitions": {
    "regex": {
      "type": "string",
      "pattern": "^([a-zA-Z_][a-zA-Z0-9_]*(<[^>]+>)?[a-zA-Z0-9_]*$)"
    },
    "c_identifier_regex": {
      "type": "string",
      "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$"
    }
  },
  "examples": [
    {
      "_type": "AST.Identifier",
      "value": "REG0"
    },
    {
      "_type": "AST.Identifier",
      "value": "A32"
    }
  ],
  "properties": {
    "_meta": {
      "$ref": "../Meta.json"
    },
    "_type": {
      "enum": [
        "AST.Identifier"
      ]
    },
    "value": {
      "info": [
        "The string value of this identifier."
      ],
      "$ref": "#/definitions/regex"
    }
  },
  "required": [
    "value"
  ],
  "title": "Identifier",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "additionalProperties": false
}