/
multiversal.schema.json
193 lines (193 loc) · 6.82 KB
/
multiversal.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"type": "array",
"items": {
"allOf": [
{
"type": "object",
"properties": {
"not-for": {
"type": "string"
},
"only-for": {
"type": "string"
},
"api": {
"type": "string"
}
}
},
{
"oneOf": [
{
"type": "object",
"required": [ "enum" ],
"properties": { "enum": { "$ref": "#/definitions/enum" } }
},
{
"type": "object",
"required": [ "struct" ],
"properties": { "struct": { "$ref": "#/definitions/struct" } }
},
{
"type": "object",
"required": [ "union" ],
"properties": { "union": { "$ref": "#/definitions/union" } }
},
{
"type": "object",
"required": [ "function" ],
"properties": { "function": { "$ref": "#/definitions/function" } }
},
{
"type": "object",
"required": [ "funptr" ],
"properties": { "funptr": { "$ref": "#/definitions/funptr" } }
},
{
"type": "object",
"required": [ "lowmem" ],
"properties": { "lowmem": { "$ref": "#/definitions/lowmem" } }
},
{
"type": "object",
"required": [ "verbatim" ],
"properties": { "verbatim": { "$ref": "#/definitions/verbatim" } }
},
{
"type": "object",
"required": [ "typedef" ],
"properties": { "typedef": { "$ref": "#/definitions/typedef" } }
},
{
"type": "object",
"required": [ "common" ],
"properties": { "common": { "$ref": "#/definitions/common" } }
},
{
"type": "object",
"required": [ "dispatcher" ],
"properties": { "dispatcher": { "$ref": "#/definitions/dispatcher" } }
}
]
}
]
},
"definitions": {
"expr": {
"oneOf": [ { "type": "string" }, { "type": "integer" } ]
},
"enum": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"value": { "$ref": "#/definitions/expr" }
},
"required": ["name"]
}
}
},
"required": ["values"]
},
"struct": {
"type": "object"
},
"union": {
"type": "object"
},
"function": {
"type": "object",
"properties": {
"name": { "type": "string" },
"return": { "type": "string" },
"args": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"register": { "$ref": "#/definitions/reg" }
},
"required": [ "type" ]
}
},
"trap": { "type": "integer" },
"inline": { "type": "string" },
"noinline": { "type": "string" },
"executor": { "oneOf": [ {"type":"string"}, {"type":"boolean"}] },
"returnreg": { "$ref": "#/definitions/reg" },
"variants": { "type": "array", "items": { "type": "string" }},
"executor_extras": { "type": "string" },
"m68k-inline": { "type": "array", "items": { "type": "integer" }},
"dispatcher": { "type": "string" },
"selector": { "type": "integer" },
"file_trap": { "oneOf": [ {"type":"string"}, {"type":"boolean"}] },
"comment": { "type": "string" },
"old_name": { "type": "string" }
},
"additionalProperties": false,
"required": [ "name" ]
},
"funptr": {
"type": "object",
"properties": {
"name": { "type": "string" },
"return": { "type": "string" },
"args": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"register": { "$ref": "#/definitions/reg" }
},
"required": [ "type" ]
}
},
"returnreg": { "$ref": "#/definitions/reg" },
"comment": { "type": "string" }
},
"additionalProperties": false,
"required": [ "name" ]
},
"lowmem": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"address": { "type": "integer" },
"comment": { "type": "string" }
},
"additionalProperties": false,
"required": [ "name", "type", "address" ]
},
"verbatim": {
"type": "string"
},
"typedef": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"comment": { "type": "string" }
},
"required": [ "name", "type" ],
"additionalProperties": false
},
"common": {
"type": "object"
},
"dispatcher": {
"type": "object"
},
"reg": {
"type": "string"
}
}
}