-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
131 lines (131 loc) · 4.51 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"id": "java/mash-whitespacesdk",
"name": "whitespacesdk",
"authors": ["MArtin SHerratt"],
"license": "GPL-3.0-or-later",
"languages": ["Java"],
"tags": ["interpreter", "assembler", "text to Whitespace", "programs"],
"date": "2010-04-22 15:21:24 +0100",
"spec_version": "0.3",
"source": [
"https://code.google.com/archive/p/whitespacesdk/",
"https://github.com/wspace/mash-whitespacesdk",
"https://github.com/thaliaarchi/repo-archival/blob/main/scripts/wspace/mash-whitespacesdk.sh"
],
"submodules": [{ "path": "whitespacesdk", "url": "https://github.com/wspace/mash-whitespacesdk" }],
"whitespace": {
"nonstandard": [
{ "name": "Invert", "seq": "STT", "desc": "Invert the stack" },
{ "name": "OutputStack", "seq": "TLSSS", "desc": "Output entire stack as character" }
],
"extension": "wss"
},
"assembly": {
"mnemonics": {
"push": "Push",
"dup": "Duplicate",
"copy": "Copy",
"swap": "Swap",
"drop": "Discard",
"slide": "Slide",
"add": "Add",
"sub": "Subtract",
"mul": "Multiply",
"div": "Divide",
"mod": "Mod",
"store": "Store",
"retrieve": "Retrieve",
"label": "Label",
"call": "Gosub",
"jmp": "Goto",
"jz": "GotoIfZero",
"jn": "GotoIfNegative",
"ret": "EndSub",
"end": "End",
"printc": "OutputChar",
"printi": "OutputNumber",
"readc": "InputChar",
"readi": "InputNumber"
},
"macros": [{ "name": "NullOp", "replace": [ ] }],
"patterns": { "number": "-?[0-9]+|char ." },
"case_sensitive_mnemonics": false,
"instruction_delimiter": "none",
"line_comments": ["#"],
"indentation": "",
"extension": "txt"
},
"mappings": [{ "space": "[Space]", "tab": "[Tab]", "lf": "[LF]" }],
"programs": [
{
"path": "src/uk/co/mash/whitespace/example/raw_source/add_2_numbers.wss",
"aux": [
"src/uk/co/mash/whitespace/example/editor/add_2_numbers.txt",
"src/uk/co/mash/whitespace/example/listing/add_2_numbers_listing.txt"
]
},
{
"path": "src/uk/co/mash/whitespace/example/raw_source/count_to_10.wss",
"aux": ["src/uk/co/mash/whitespace/example/listing/count_to_10_listing.txt"]
},
{ "path": "src/uk/co/mash/whitespace/example/raw_source/email.wss" },
{
"path": "src/uk/co/mash/whitespace/example/raw_source/enter_number.wss",
"aux": [
"src/uk/co/mash/whitespace/example/editor/enter_number.txt",
"src/uk/co/mash/whitespace/example/listing/enter_number_listing.txt"
]
},
{
"path": "src/uk/co/mash/whitespace/example/raw_source/factorial.wss",
"aux": [
"src/uk/co/mash/whitespace/example/editor/factorial.txt",
"src/uk/co/mash/whitespace/example/listing/factorial_listing.txt"
]
},
{ "path": "src/uk/co/mash/whitespace/example/raw_source/hello_whitespace.wss" },
{
"path": "src/uk/co/mash/whitespace/example/raw_source/invert.wss",
"aux": ["src/uk/co/mash/whitespace/example/listing/invert_listing.txt"],
"authors": ["Thalia Archibald"]
},
{
"path": "src/uk/co/mash/whitespace/example/raw_source/you_are_a_twat.wss",
"aux": ["src/uk/co/mash/whitespace/example/listing/you_are_a_twat_listing.txt"]
}
],
"commands": [
{
"type": "interpreter",
"bin": "bin/uk/co/mash/whitespace/executable/WhitespaceProgramRunner.class",
"usage": "<file> [list]",
"options": [{ "bare": "list", "desc": "Dump the disassembled program" }],
"option_parse": "manual"
},
{
"type": "interpreter and assembler",
"bin": "bin/uk/co/mash/whitespace/executable/ListingFileProgramRunner.class",
"usage": "<file>",
"option_parse": "manual",
"notes": "Interprets a \"listing\"-style program"
},
{
"type": "assembler",
"bin": "bin/uk/co/mash/whitespace/executable/WhitespaceCompilerDebugger.class",
"usage": "<file> ((write | <not_write>) (run | <not_run>)?)?",
"output": "stdout and <file:no_ext>.wss if write",
"options": [
{ "bare": "write", "desc": "Write to a corresponding .wss file" },
{ "bare": "run", "desc": "Interpret the program" }
],
"option_parse": "manual"
},
{
"type": "text to Whitespace",
"bin": "bin/uk/co/mash/whitespace/executable/CreateSimpleOutputFromString.class",
"usage": "[<output_readable>]",
"option_parse": "manual",
"notes": "When any argument is passed, it also prints [Space], [Tab], and [LF]"
}
]
}