An AST model wrapper for an identifier, such as REG0
or a32
.
Definitions | Type | Description |
---|---|---|
c_identifier_regex |
|
|
regex |
|
|
Properties | Type | Description |
---|---|---|
_meta | Meta |
See
Meta
for more information.
|
_type |
|
|
value◊ |
The string value of this identifier.
See
definitions.regex
for more information.
|
|
|
||
|
{
"_type": "AST.Identifier",
"value": "REG0"
}
{
"_type": "AST.Identifier",
"value": "A32"
}
{
"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
}