-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
71 lines (71 loc) · 1.76 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
{
"id": "cpp/yuukiaria",
"name": "ws-interpreter",
"authors": ["YuukiARIA"],
"license": "none",
"languages": ["C++"],
"tags": ["interpreter", "programs"],
"date": "2013-05-05 04:06:36 -0700",
"spec_version": "0.3",
"source": ["https://github.com/YuukiARIA/ws-interpreter"],
"submodules": [{ "path": "ws-interpreter", "url": "https://github.com/YuukiARIA/ws-interpreter" }],
"bounds": { "precision": "fixed", "heap_min": 0 },
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "PUSH",
"dup": "DUP",
"copy": "COPY",
"swap": "SWAP",
"drop": "POP",
"slide": "SLIDE",
"add": "ADD",
"sub": "SUB",
"mul": "MUL",
"div": "DIV",
"mod": "MOD",
"store": "STORE",
"retrieve": "LOAD",
"label": "LABEL",
"call": "CALL",
"jmp": "JMP",
"jz": "JZ",
"jn": "JNEG",
"ret": "RET",
"end": "HALT",
"printc": "PUTC",
"printi": "PUTI",
"readc": "GETC",
"readi": "GETI"
},
"usage": ["enum"]
},
"programs": [{ "path": "samples/square.ws" }],
"commands": [
{
"type": "interpreter",
"bin": "bin/ws",
"usage": "[-v <size>] [-c <size>] [-h <size>] <file>",
"options": [
{
"short": "v",
"arg": "size",
"type": "C++ int",
"default": 256,
"min": 1,
"desc": "value stack size"
},
{
"short": "c",
"arg": "size",
"type": "C++ int",
"default": 256,
"min": 1,
"desc": "call stack size"
},
{ "short": "h", "arg": "size", "type": "C++ int", "default": 2048, "min": 1, "desc": "heap size" }
],
"option_parse": "manual"
}
]
}