-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
50 lines (50 loc) · 1.36 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
{
"id": "python/ganeshsankaran",
"name": "Interpreter",
"authors": ["Ganesh Sankaran"],
"license": "none",
"languages": ["Python"],
"tags": ["wsa interpreter", "programs"],
"date": "2021-05-29 10:30:15 -0700",
"spec_version": "0.2",
"source": ["https://github.com/ganeshsankaran/interpreter"],
"submodules": [{ "path": "interpreter", "url": "https://github.com/ganeshsankaran/interpreter" }],
"assembly": {
"mnemonics": {
"push": "push <number>",
"dup": "dup",
"swap": "swap",
"drop": "pop",
"add": "add",
"sub": "sub",
"mul": "mul",
"div": "div",
"mod": "mod",
"store": "store",
"retrieve": "load",
"label": "label <label>",
"call": "call <label>",
"jmp": "jump <label>",
"jz": "jnil <label>",
"jn": "jneg <label>",
"ret": "ret",
"end": "halt",
"printc": "putchar",
"printi": "putint",
"readc": "getchar",
"readi": "getint"
},
"indentation": "",
"usage": ["wsa interpreter"],
"extension": "txt"
},
"programs": [{ "path": "program.txt", "spec_version": "0.2" }],
"commands": [
{
"type": "wsa interpreter",
"bin": "interpreter.py",
"usage": "<file>",
"notes": "Directly executes wsa files, starting at the `main` label. Files must not have any blank or trailing lines"
}
]
}