-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
62 lines (62 loc) · 1.66 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
{
"id": "php/nobody1986",
"name": "whitespace-php",
"authors": ["nobody1986"],
"license": "none",
"languages": ["PHP", "C"],
"tags": ["interpreter", "disassembler", "binary packer", "programs"],
"date": "2015-02-04 17:15:42 +0800",
"spec_version": "0.3",
"source": ["https://github.com/nobody1986/whitespace-php"],
"submodules": [{ "path": "whitespace-php", "url": "https://github.com/nobody1986/whitespace-php" }],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "PUSH",
"dup": "COPY",
"copy": "COPYN",
"swap": "EXCHANGE",
"drop": "DROP",
"slide": "SLIDEOFF",
"add": "ADD",
"sub": "SUB",
"mul": "MUL",
"div": "DIV",
"mod": "MOD",
"store": "STORE",
"retrieve": "READ",
"label": "MARK",
"call": "CALL",
"jmp": "JUMP",
"jz": "JUMPNULL",
"jn": "JUMPDE",
"ret": "ENDFUNC",
"end": "ENDLE",
"printc": "OUTCHAR",
"printi": "OUTNUM",
"readc": "INCHAR",
"readi": "INNUM"
},
"indentation": "",
"usage": ["disassembler"]
},
"programs": [
{ "path": "samples/calc.ws" },
{ "path": "samples/fact.ws" },
{ "path": "samples/fibonacci.ws" },
{ "path": "samples/hanoi.ws" },
{ "path": "samples/hworld.ws" },
{ "path": "samples/name.ws" },
{ "path": "ret.bin" },
{ "path": "ret.txt" }
],
"commands": [
{
"type": "interpreter",
"bin": "whitespace.php",
"usage": "php $0 <file>",
"notes": "`compile2File` function, if uncommented, can disassemble to file"
},
{ "type": "interpreter", "bin": "whitespace", "usage": "$0 <file>" }
]
}