forked from jensnicolay/jipda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconcreteAg.js
65 lines (54 loc) · 1.19 KB
/
concreteAg.js
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
function createConcAg()
{
var concreteAg = {};
concreteAg.toString = function () {return "concAg"};
var __conca__ = 1024;
function storeToAddr(store)
{
return String();
}
// the prefixes are necessary for when a CESK step generates more than one address
// without allocating it in the store
// (other solution: cache next steps so that generated addresses are stable)
concreteAg.object =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.closure =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.closureProtoObject =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.array =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.string =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.benv =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.constructor =
function (node, benva, store, kont)
{
return __conca__++;
}
concreteAg.vr =
function (name, ctx)
{
return __conca__++;
}
return concreteAg;
}