-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
88 lines (88 loc) · 2.21 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
{
"id": "whitespace/drebelsky-programs",
"name": "Whitespace Programs",
"authors": ["Daniel Rebelsky"],
"license": "none",
"languages": ["Whitespace", "Python"],
"tags": ["programs", "assembler"],
"date": "2021-12-31 01:18:59 -0600",
"spec_version": "0.3",
"source": ["https://github.com/drebelsky/whitespace-programs"],
"submodules": [{ "path": "whitespace-programs", "url": "https://github.com/drebelsky/whitespace-programs" }],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "push",
"dup": "dup",
"copy": "copy",
"swap": "swap",
"drop": "pop",
"slide": "slide",
"add": "add",
"sub": "sub",
"mul": "mul",
"div": "div",
"mod": "mod",
"store": "store",
"retrieve": "load",
"label": "<label>:",
"call": "call",
"jmp": "jump",
"jz": "jz",
"jn": "jn",
"ret": "ret",
"end": "end",
"printc": "wchar",
"printi": "wnum",
"readc": "rchar",
"readi": "rnum"
},
"patterns": { "char": "'(.|\\[ntrb\\])'|\".\"", "label": "[^\\s]+" },
"line_comments": [";"],
"indentation": " ",
"usage": ["assembler", "programs"],
"extension": "wsa"
},
"programs": [
{
"path": "asm/fizzbuzz.wsa",
"generated": "ws/fizzbuzz.ws",
"spec_version": "0.2",
"generate": "make"
},
{
"path": "asm/hello_world.wsa",
"generated": "ws/hello_world.ws",
"spec_version": "0.2",
"generate": "make"
},
{
"path": "asm/interpreter.wsa",
"generated": "ws/interpreter.ws",
"spec_version": "0.2",
"generate": "make"
},
{
"path": "asm/print_primes.wsa",
"generated": "ws/print_primes.ws",
"spec_version": "0.2",
"generate": "make"
},
{ "path": "asm/test.wsa", "generated": "ws/test.ws", "spec_version": "0.2", "generate": "make" },
{
"path": "asm/tictactoe.wsa",
"generated": "ws/tictactoe.ws",
"spec_version": "0.2",
"generate": "make"
}
],
"commands": [
{
"type": "assembler",
"bin": "assemble.py",
"usage": "python3 $0 <file>",
"input": "<file>",
"output": "stdout"
}
]
}