-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathproject.json
More file actions
52 lines (52 loc) · 1.36 KB
/
project.json
File metadata and controls
52 lines (52 loc) · 1.36 KB
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
{
"id": "python/meand",
"name": "whitespace-compiler",
"authors": ["Adam Dinwoodie"],
"license": "none",
"languages": ["Python"],
"tags": ["assembler"],
"date": "2016-04-13 13:40:50 +0100",
"spec_version": "0.2",
"source": ["https://github.com/me-and/whitespace-compiler"],
"submodules": [{ "path": "whitespace-compiler", "url": "https://github.com/me-and/whitespace-compiler" }],
"assembly": {
"mnemonics": {
"push": "PUSH",
"dup": "DUPE",
"swap": "SWAP",
"drop": "DROP",
"add": "ADD",
"sub": "SUB",
"mul": "MUL",
"div": "DIV",
"mod": "MOD",
"store": "STORE",
"retrieve": "RETRV",
"label": ["LABEL", "<label>:"],
"call": "GOSUB",
"jmp": "JMP",
"jz": "JEZ",
"jn": "JLZ",
"ret": "RETURN",
"end": "END",
"printc": "PUTC",
"printi": "PUTN",
"readc": "GETC",
"readi": "GETN"
},
"line_comments": ["#"],
"usage": ["assembler"]
},
"commands": [
{
"type": "assembler",
"bin": "compile.py",
"usage": "[-h | --help] [-o <output_file>] <file>",
"options": [
{ "short": "h", "long": "help", "desc": "show this help message and exit" },
{ "short": "o", "arg": "ofile", "type": "file", "desc": "specify output destination" }
],
"option_parse": "Python argparse"
}
]
}