blob: 6ec0a1773844992113001b6fd9c47dada5584c5b (
plain)
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
|
(.module:
[lux #*
[abstract
["." equivalence (#+ Equivalence)]]
[data
[format
[".F" binary (#+ Format)]]]]
["." // #_
["#." label (#+ Label)]
["//#" /// #_
[constant (#+ Class)]
["#." encoding (#+ U2)]
["#." index (#+ Index)]]])
(type: #export Exception
{#start-pc Label
#end-pc Label
#handler-pc Label
#catch-type (Index Class)})
(def: #export equivalence
(Equivalence Exception)
($_ equivalence.product
//label.equivalence
//label.equivalence
//label.equivalence
////index.equivalence
))
## https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.3
(def: #export length
Nat
($_ n/+
## u2 start_pc;
////encoding.u2-bytes
## u2 end_pc;
////encoding.u2-bytes
## u2 handler_pc;
////encoding.u2-bytes
## u2 catch_type;
////encoding.u2-bytes
))
(def: #export format
(Format Exception)
($_ binaryF.and
//label.format
//label.format
//label.format
////index.format
))
|