-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
73 lines (73 loc) · 2.3 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
72
73
{
"id": "cpp/pavel987",
"name": "wspace",
"authors": ["Pavel Shub"],
"license": "GPL-3.0-or-later",
"languages": ["C++"],
"tags": ["interpreter", "debugger", "assembler", "disassembler", "mapping"],
"date": "2007-05-26 17:19:24",
"spec_version": "0.3",
"source": [
"https://github.com/pavel987/wspace",
"https://web.archive.org/web/20080917031716/http://compsoc.dur.ac.uk:80/archives/whitespace/2008-April/000068.html",
"https://pavelshub.com/blog/2010/10/wspace/",
"https://github.com/wspace/pavel987-cpp"
],
"submodules": [{ "path": "wspace", "url": "https://github.com/wspace/pavel987-cpp" }],
"assembly": {
"mnemonics": {
"push": "push",
"dup": "dup",
"copy": "copy",
"swap": "swap",
"drop": "discard",
"slide": "slide",
"add": "add",
"sub": "sub",
"mul": "mul",
"div": "div",
"mod": "mod",
"store": "store",
"retrieve": "retrieve",
"label": ["label", "<number>:"],
"call": "call",
"jmp": "jump",
"jz": "jz",
"jn": "jn",
"ret": "ret",
"end": "exit",
"printc": "outchar",
"printi": "outnum",
"readc": "readchar",
"readi": "readnum"
},
"line_comments": ["#"],
"indentation": "",
"usage": ["assembler", "disassembler", "debugger"],
"extension": "wsa"
},
"mappings": [{ "space": "A", "tab": "B", "lf": "C\n", "spaces_between": false }],
"commands": [
{
"type": "interpreter",
"bin": "wspace",
"usage": "[algdh] <file>",
"options": [
{ "short": "a", "desc": "print whitespace assembly language instead of program execution" },
{
"short": "l",
"desc": "prints the code using ABC instead of space, tab, and new line respectively then exits"
},
{ "short": "g", "desc": "debugging mode, will step through each command of the program manually" },
{
"short": "d",
"desc": "prints stack and heap size after program execution similar to original ws interpreter"
},
{ "short": "h", "long": "help", "desc": "print this menu then exit" }
],
"option_parse": "manual",
"notes": "Flags combine similar to `tar`, without dash required"
},
{ "type": "assembler", "bin": "assembler", "usage": "<file>" }
]
}