-
Notifications
You must be signed in to change notification settings - Fork 63
/
namespaces.html
70 lines (63 loc) · 1.6 KB
/
namespaces.html
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
<pre class=metadata>
toc: false
copyright: false
assets: none
</pre>
<emu-intro namespace=intro aoid=SomeAlg id=i1>
<h1>Intro</h1>
<emu-grammar type="definition">
Foo ::
`bar` MainProd `baz`
</emu-grammar>
</emu-intro>
<emu-clause id=c1>
<h1>Clause 1</h1>
<emu-grammar type="definition">
Foo ::
`bar` MainProd `baz`
MainProd ::
Foo
</emu-grammar>
<emu-clause id=c11 namespace=clause>
<h1>Clause 1.1</h1>
<emu-grammar type="definition">
Foo ::
`bar` MainProd `baz`
</emu-grammar>
<emu-clause id=c111 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-clause>
<p>SomeAlg does things.</p>
<p>Can still xref clauses inside of namespaces: <emu-xref href="#annex11"></emu-xref>.</p>
<p>Can xref prods in namespaces: <emu-xref href="#prod-annex-Foo"></emu-xref>.</p>
</emu-clause>
</emu-clause>
<emu-annex id=annex1 namespace=annex>
<h1>Annex</h1>
<emu-grammar type="definition">
Foo ::
`bar` MainProd `baz`
</emu-grammar>
<emu-annex id=annex11 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-annex>
<emu-annex id=annex12 aoid=SomeAlg namespace=annex2>
<h1>Annex 1.2</h1>
<p>SomeAlg should link to #annex12. |Foo| should link to the production in #annex1.</p>
</emu-annex>
<p>SomeAlg does things.</p>
<emu-alg>
1. Let _x_ be the result of SomeAlg.
</emu-alg>
</emu-annex>
<emu-annex id=annex2 namespace=annex>
<h1>Annex 2</h1>
<emu-annex id=annex21 aoid=SomeAlg>
<h1>SomeAlg</h1>
</emu-annex>
<emu-grammar type="definition">
MainProd ::
Foo
</emu-grammar>
<p>SomeAlg does things.</p>
</emu-annex>