-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathproject.json
More file actions
91 lines (91 loc) · 2.8 KB
/
Copy pathproject.json
File metadata and controls
91 lines (91 loc) · 2.8 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
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
{
"id": "python/eizoassik-pyws",
"name": "PYWS",
"authors": ["Eizo Assik"],
"license": "none",
"languages": ["Python"],
"tags": ["interpreter", "assembler", "disassembler", "mapping"],
"date": "2014-08-28 10:18:04 +0800",
"spec_version": "0.3",
"source": ["https://github.com/EizoAssik/pyws"],
"submodules": [{ "path": "pyws", "url": "https://github.com/EizoAssik/pyws" }],
"whitespace": {
"nonstandard": [{ "name": "PYFN", "seq": "LLS", "args": ["label"] }, { "name": "PUSHS", "args": ["string"] }]
},
"assembly": {
"mnemonics": {
"push": "PUSH",
"dup": "DUP",
"copy": "COPY",
"swap": "SWAP",
"drop": "POP",
"slide": "SKIP",
"add": "ADD",
"sub": "SUB",
"mul": "MUL",
"div": "DIV",
"mod": "MOD",
"store": "STORE",
"retrieve": "RETRIEVE",
"label": "MARK",
"call": "CALL",
"jmp": "JUMP",
"jz": "JZ",
"jn": "JS",
"ret": "RET",
"end": "END",
"printc": "PCHR",
"printi": "PNUM",
"readc": "RCHR",
"readi": "RNUM"
},
"line_comments": ["#"],
"indentation": "",
"usage": ["assembler", "disassembler"]
},
"mappings": [
{ "space": "S", "tab": "T", "lf": "L", "spaces_between": false },
{ "space": "草", "tab": "泥", "lf": "马", "spaces_between": false }
],
"commands": [
{
"bin": "pyws.py",
"usage": "[-h | --help] [-A] [--IR] [--strict] [--style=<style>] [--sep=<sep>] [--arg-sep=<arg_sep>] [--debug] [--traceall] <file>",
"options": [
{ "short": "h", "long": "help", "desc": "show this help message and exit" },
{ "short": "A", "desc": "use assembler instead of compiler" },
{ "long": "IR", "desc": "compile to WSIR instead of running it" },
{ "long": "strict", "desc": "use strict mode" },
{
"long": "style",
"arg": "STYLE",
"type": "enum",
"default": "ORIGIN",
"desc": "code style",
"values": [
{ "values": ["ORIGIN"], "desc": "use space/tab/lf" },
{ "values": ["STL"], "desc": "use S/T/L instead space/tab/lf" },
{ "values": ["GMH"], "desc": "use 草/泥/马 instead of space/tab/lf" }
]
},
{
"long": "sep",
"arg": "SEP",
"type": "string",
"default": ";",
"desc": "separator for assembled code between operators"
},
{
"long": "arg-sep",
"arg": "ARG_SEP",
"type": "string",
"default": ";",
"desc": "separator for assembled code between arguments"
},
{ "long": "debug", "desc": "run with debug mode" },
{ "long": "traceall", "desc": "store heap and stack after EACH operator" }
],
"option_parse": "Python argparse"
}
]
}