forked from anoma/juvix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Addition.ju.HRGolden
58 lines (58 loc) · 1.11 KB
/
Addition.ju.HRGolden
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
[
( "open" "Prelude" )
,
( "open" "Michelson" )
,
( "type" "Storage" ()
( ":record-d" "value" "nat" "valu" "nat" )
)
,
( ":defsig" "foo"
( ":infix" "->" "nat"
( ":infix" "->" "storage" "storage" )
)
)
,
( ":defun" "foo"
( "va"
( ":record" ( "value" ) ( "valu" ) )
)
( ":record"
( "value"
( "add" "valu" "va" )
)
( "valu"
( "add" "value" "va" )
)
)
)
,
( ":defsig" "add-storage"
( ":infix" "->" "storage" "nat" )
)
,
( ":defun" "add-storage"
(
( ":record" ( "value" ) ( "valu" ) )
)
( "add" "value" "valu" )
)
,
( ":defsig" "default"
( ":infix" "->" "nat"
( ":infix" "->" "storage" "storage" )
)
)
,
( ":defun" "default"
( "addnat" "storage" )
( "pair"
( ":paren"
( "add-storage" "storage" )
)
( ":paren"
( "foo" "input" "storage" )
)
)
)
]