-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
73 lines (73 loc) · 2.26 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
73
{
"id": "cpp/knmorgan",
"name": "ws",
"authors": ["Kyle Morgan"],
"license": "GPL-3.0-or-later",
"languages": ["C++"],
"tags": ["interpreter", "programs"],
"date": "2012-12-29 00:19:16 -0500",
"spec_version": "0.3",
"source": ["https://github.com/knmorgan/ws"],
"submodules": [{ "path": "ws", "url": "https://github.com/knmorgan/ws" }],
"bounds": { "precision": "arbitrary" },
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "PUSH",
"dup": "DUPLICATE",
"copy": "COPY_NTH",
"swap": "SWAP",
"drop": "DISCARD",
"slide": "SLIDE",
"add": "ADD",
"sub": "SUB",
"mul": "MUL",
"div": "DIV",
"mod": "MOD",
"store": "STORE",
"retrieve": "RETRIEVE",
"label": "MARK",
"call": "CALL",
"jmp": "JUMP",
"jz": "JUMPIFZ",
"jn": "JUMPIFN",
"ret": "RETURN",
"end": "EXIT",
"printc": "OUTC",
"printi": "OUTN",
"readc": "READC",
"readi": "READN"
},
"usage": ["enum"]
},
"programs": [
{ "path": "examples/calc.ws", "equivalent": "calc.ws", "spec_version": "0.2" },
{ "path": "examples/count.ws", "equivalent": "count.ws", "spec_version": "0.2" },
{ "path": "examples/fact.ws", "equivalent": "fact.ws", "spec_version": "0.2" },
{ "path": "examples/hanoi.ws", "equivalent": "hanoi.ws", "spec_version": "0.2" },
{ "path": "examples/hworld.ws", "equivalent": "hworld.ws", "spec_version": "0.2" },
{ "path": "examples/name.ws", "equivalent": "name.ws", "spec_version": "0.2" },
{ "path": "examples/quine.ws", "equivalent": "quine.ws", "spec_version": "0.2" },
{ "path": "examples/yaq.ws", "spec_version": "0.2" }
],
"commands": [
{
"type": "interpreter",
"bin": "ws",
"usage": "[-v | --version] [-h | --help] [-s <size> | --stack-size <size>] <file>",
"options": [
{ "short": "v", "long": "version", "desc": "Print version and copyright" },
{ "short": "h", "long": "help", "desc": "Print usage" },
{
"short": "s",
"long": "stack-size",
"arg": "size",
"type": "C++ unsigned long",
"default": 1000000,
"desc": "Set stack limit"
}
],
"option_parse": "manual"
}
]
}