-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
72 lines (72 loc) · 2.44 KB
/
project.json
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
71
72
{
"id": "scala/stephenpatrick",
"name": "Whitespace Interpreter",
"authors": ["Patrick Stephen"],
"license": "none",
"languages": ["Scala"],
"tags": ["interpreter", "programs"],
"date": "2016-01-28 16:53:06 -0600",
"spec_version": "0.2",
"source": ["https://bitbucket.org/StephenPatrick/whitespace-interpreter"],
"submodules": [
{
"path": "whitespace-interpreter",
"url": "https://bitbucket.org/StephenPatrick/whitespace-interpreter"
}
],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "stack_push",
"dup": "stack_dupe",
"swap": "stack_swap",
"drop": "stack_discard",
"add": "add",
"sub": "sub",
"mul": "mult",
"div": "div",
"mod": "mod",
"store": "heap_store",
"retrieve": "heap_retrieve",
"label": "mark_label",
"call": "call_sub",
"jmp": "jmp",
"jz": "jez",
"jn": "jlz",
"ret": "end_sub",
"printc": "print_char",
"printi": "print_int",
"readc": "read_char",
"readi": "read_int"
},
"usage": ["enum"]
},
"programs": [
{ "path": "conf/predict-superbowl.ws", "spec_version": "0.2" },
{ "path": "conf/calc.ws", "equivalent": "calc.ws", "spec_version": "0.2" },
{ "path": "conf/count.ws", "equivalent": "count.ws", "spec_version": "0.2" },
{ "path": "conf/fact.ws", "equivalent": "fact.ws", "spec_version": "0.2" },
{ "path": "conf/fibonacci.ws", "equivalent": "fibonacci.ws", "spec_version": "0.2" },
{ "path": "conf/hanoi.ws", "equivalent": "hanoi.ws", "spec_version": "0.2" },
{ "path": "conf/hworld.ws", "equivalent": "hworld.ws", "spec_version": "0.2" },
{ "path": "conf/name.ws", "equivalent": "name.ws", "spec_version": "0.2" },
{ "path": "conf/sudoku.ws", "equivalent": "sudoku.ws", "spec_version": "0.3" }
],
"commands": [
{
"type": "interpreter",
"bin": "whitespace.jar",
"usage": "[<file>] [-nh] [-d] [-unsafe] [-int | -long | -bigint]",
"input": "<file> or conf/count.ws",
"options": [
{ "short": "nh", "desc": "Print no header" },
{ "short": "d", "desc": "Debug mode" },
{ "short": "unsafe", "desc": "Use real heap structure" },
{ "short": "int", "desc": "(Default) Use 32-bit numbers" },
{ "short": "long", "desc": "Use 64-bit numbers" },
{ "short": "bigint", "desc": "Use unlimited-bit numbers" }
],
"option_parse": "manual"
}
]
}