Debian Codegraph @

examples/prism-cue.html

raw symbols SCIP
1 <h2>Full example</h2>
2 <pre><code>#Spec: {
3 kind: string
4
5 name: {
6 first: !="" // must be specified and non-empty
7 middle?: !="" // optional, but must be non-empty when specified
8 last: !=""
9 }
10
11 // The minimum must be strictly smaller than the maximum and vice versa.
12 minimum?: int & &lt;maximum
13 maximum?: int & >minimum
14 }
15
16 // A spec is of type #Spec
17 spec: #Spec
18 spec: {
19 knid: "Homo Sapiens" // error, misspelled field
20
21 name: first: "Jane"
22 name: last: "Doe"
23 }</code></pre>