AARCHMRS Schema 2.5.3

↚ Home

AST.Set object

A model representing a set of expressions:

  • {EL1, EL2, EL3}
  • {1, 2, 3}

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
AST.Set
values
array [
BinaryOp
]

The set's elements.

Default
[]
Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "AST.Set", 
    "values": [
        {
            "_type": "AST.Identifier", 
            "value": "EL1"
        }, 
        {
            "_type": "AST.Identifier", 
            "value": "EL2"
        }, 
        {
            "_type": "AST.Identifier", 
            "value": "EL3"
        }
    ]
}
{
    "_type": "AST.Set", 
    "values": [
        {
            "_type": "AST.Integer", 
            "value": 1
        }, 
        {
            "_type": "AST.Integer", 
            "value": 2
        }, 
        {
            "_type": "AST.Integer", 
            "value": 3
        }
    ]
}

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

{
  "additionalProperties": false,
  "info": [
    "A model representing a set of expressions:",
    [
      " - `{EL1, EL2, EL3}`",
      " - `{1, 2, 3}`"
    ]
  ],
  "examples": [
    {
      "_type": "AST.Set",
      "values": [
        {
          "_type": "AST.Identifier",
          "value": "EL1"
        },
        {
          "_type": "AST.Identifier",
          "value": "EL2"
        },
        {
          "_type": "AST.Identifier",
          "value": "EL3"
        }
      ]
    },
    {
      "_type": "AST.Set",
      "values": [
        {
          "_type": "AST.Integer",
          "value": 1
        },
        {
          "_type": "AST.Integer",
          "value": 2
        },
        {
          "_type": "AST.Integer",
          "value": 3
        }
      ]
    }
  ],
  "properties": {
    "_meta": {
      "$ref": "../Meta.json"
    },
    "_type": {
      "enum": [
        "AST.Set"
      ]
    },
    "values": {
      "info": [
        "The set's elements."
      ],
      "default": [],
      "type": "array",
      "items": {
        "$ref": "BinaryOp.json#/definitions/expression"
      }
    }
  },
  "title": "Set",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#"
}