AARCHMRS Schema 2.5.3

↚ Home

AST.Slice object

A model representing a slice of a value, used in SquareOp:

For example: 31:16

Unless otherwise stated, all slices refer to bits and bit addresses.

object

Properties Type Description
_meta Meta
See Meta for more information.
_type
Enum
AST.Slice
left BinaryOp

The starting index of the slice, inclusive.

See definitions.expression in BinaryOp for more information.
right BinaryOp

The ending index of the slice, inclusive.

See definitions.expression in BinaryOp for more information.
Additional Properties
Not Allowed
◊ Required
Properties marked with ◊ are required properties.
Examples
{
    "_type": "AST.Slice", 
    "left": {
        "_type": "AST.Integer", 
        "value": 31
    }, 
    "right": {
        "_type": "AST.Integer", 
        "value": 16
    }
}

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

{
  "additionalProperties": false,
  "info": [
    "A model representing a slice of a value, used in SquareOp:",
    "For example: `31:16`",
    "Unless otherwise stated, all slices refer to bits and bit addresses."
  ],
  "examples": [
    {
      "_type": "AST.Slice",
      "left": {
        "_type": "AST.Integer",
        "value": 31
      },
      "right": {
        "_type": "AST.Integer",
        "value": 16
      }
    }
  ],
  "properties": {
    "_meta": {
      "$ref": "../Meta.json"
    },
    "_type": {
      "enum": [
        "AST.Slice"
      ]
    },
    "left": {
      "info": [
        "The starting index of the slice, inclusive."
      ],
      "$ref": "BinaryOp.json#/definitions/expression"
    },
    "right": {
      "info": [
        "The ending index of the slice, inclusive."
      ],
      "$ref": "BinaryOp.json#/definitions/expression"
    }
  },
  "required": [
    "left",
    "right"
  ],
  "title": "Slice",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#"
}