-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
87 lines (87 loc) · 2.88 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
{
"id": "python/stephenchappell",
"name": "Whitespace Interpreter and Assembler",
"authors": ["Stephen Chappell"],
"license": "MIT",
"languages": ["Python"],
"tags": ["interpreter", "assembler", "text to Whitespace", "programs"],
"date": "2010-03-14 15:35:04 +0000",
"spec_version": "0.3",
"source": [
"https://code.activestate.com/recipes/sets/12/",
"https://github.com/ActiveState/code",
"https://github.com/wspace/stephenchappell-python",
"https://github.com/thaliaarchi/repo-archival/blob/main/scripts/wspace/stephenchappell-python.sh",
"https://stackoverflow.com/questions/2901274/do-you-have-suggestions-for-these-assembly-mnemonics"
],
"submodules": [{ "path": "Whitespace", "url": "https://github.com/wspace/stephenchappell-python" }],
"assembly": {
"mnemonics": {
"push": "push",
"dup": "copy",
"copy": "copy",
"swap": "swap",
"drop": "away",
"slide": "away",
"add": "add",
"sub": "sub",
"mul": "mul",
"div": "div",
"mod": "mod",
"store": "set",
"retrieve": "get",
"label": "part",
"call": "call",
"jmp": "goto",
"jz": "zero",
"jn": "less",
"ret": "back",
"end": "exit",
"printc": "ochr",
"printi": "oint",
"readc": "ichr",
"readi": "iint"
},
"patterns": { "label": "\"[A-Za-z0-9_]+\"", "number": "[+-]?[0-9]+" },
"case_sensitive_mnemonics": true,
"line_comments": ["#"],
"indentation": " ",
"usage": ["assembler", "programs"],
"extension": "wsa"
},
"programs": [
{
"path": "Assembly/memory_manager.wsa",
"generated": "Programs/memory_manager.ws",
"spec_version": "0.3"
},
{ "path": "Assembly/stack_calc.wsa", "generated": "Programs/stack_calc.ws", "spec_version": "0.3" }
],
"build_errors": "msvcrt module only exists on Windows",
"commands": [
{
"type": "interpreter",
"bin": "Interpreter.py",
"usage": "python3.1 $0 <basename:no_ext>",
"input": "Programs/<basename:no_ext>.(ws|wso)",
"output": "stdout",
"notes": "A .wso file is generated after parsing the program and subsequent calls use it when the .ws file has not changed"
},
{
"type": "assembler",
"bin": "Assembler.py",
"usage": "python3.1 $0 <basename:no_ext> [ASM]",
"input": "Assembly/<basename:no_ext>.wsa",
"output": "Programs/<basename:no_ext>.ws",
"options": [{ "bare": "ASM", "desc": "dump program assembly" }],
"option_parse": "manual"
},
{
"type": "text to Whitespace",
"bin": "Helpers.py",
"usage": "python3.1 -c 'from Helpers import encode_string; encode_string(\"<text>\", <address>)'",
"notes": "Generates a sequence of stores, starting at the given address"
}
],
"notes": ".wso files are gzip-compressed serializations of the Python structures of parsed programs"
}