forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
48 lines (48 loc) · 1.17 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
{
"id": "javascript/wdalmut",
"name": "Whitespace Lang Compiler",
"authors": ["Walter Dal Mut"],
"license": "ISC",
"languages": ["JavaScript"],
"tags": ["disassembler"],
"date": "2019-12-28 16:28:47 +0100",
"spec_version": "0.2",
"source": ["https://github.com/wdalmut/whitespace-lang-compiler"],
"assembly": {
"mnemonics": {
"push": ["PUSH_NUMBER_STACK_TOP"],
"dup": ["DUPLICATE_STACK_TOP"],
"swap": ["SWAP_TWO_STACK_ITEMS"],
"drop": ["DISCARD_STACK_TOP"],
"add": ["ADD"],
"sub": ["SUB"],
"mul": ["MULT"],
"div": ["DIV"],
"mod": ["MOD"],
"store": ["STORE"],
"retrieve": ["RETR"],
"label": ["MARK"],
"call": ["CALL"],
"jmp": ["JP"],
"jz": ["JP0"],
"jn": ["JPL0"],
"ret": ["RET"],
"end": ["END"],
"printc": ["OUTPUT_CHAR"],
"printi": ["OUTPUT_NUMBER"],
"readc": ["READ_CHAR"],
"readi": ["READ_NUMBER"]
},
"usage": ["disassembler"]
},
"commands": [
{
"type": "disassembler",
"bin": "whitespacec",
"usage": "",
"input": "stdin",
"output": "stdout",
"notes": "Disassembles to JSON"
}
]
}