-
Notifications
You must be signed in to change notification settings - Fork 1
/
function-inventory.rnc
41 lines (41 loc) · 972 Bytes
/
function-inventory.rnc
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
start = functions
functions = element functions { package+ }
package = element package { packageName, url, imports?, final?, private? }
packageName =
attribute name {
xsd:string { minLength = "1" }
}
url =
attribute url {
xsd:string { minLength = "1" }
}
imports = element imports { package-import+ }
package-import =
element package-import {
xsd:string { minLength = "1" }
}
final = element final { function+ }
private = element private { function+ }
function = element function { name, description, arity, note? }
name =
element name {
xsd:string { minLength = "1" }
}
description =
element description {
mixed { code+ }
| xsd:string { minLength = "1" }
}
arity =
element arity {
mixed { code+ }
| xsd:string { minLength = "1" }
}
note =
element note {
mixed { code* }
}
code =
element code {
xsd:string { minLength = "1" }
}