forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
56 lines (56 loc) · 1.5 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
{
"id": "java/wysang",
"name": "Whitespace-Compiler",
"authors": ["wysang"],
"license": "none",
"languages": ["Java", "ANTLR"],
"tags": ["parser", "grammar", "programs"],
"date": "2018-10-21 19:31:04 -0700",
"spec_version": "0.3",
"source": [
"https://github.com/wspace/wysang-java",
"https://github.com/wysang/Whitespace-Compiler",
"https://github.com/thaliaarchi/repo-archival/blob/main/scripts/wspace/wysang-java.sh"
],
"whitespace": { "unimplemented": ["store", "retrieve"], "extension": "whitespace" },
"assembly": {
"mnemonics": {
"push": ["push"],
"dup": ["copy"],
"copy": ["copynth"],
"swap": ["swicth"],
"drop": ["pop"],
"slide": ["slide"],
"add": ["add"],
"sub": ["sub"],
"mul": ["mult"],
"div": ["div"],
"mod": ["mod"],
"label": ["mark"],
"call": ["call"],
"jmp": ["jump"],
"jz": ["jumpz"],
"jn": ["jumpn"],
"ret": ["ends"],
"end": ["endp"],
"printc": ["outchar"],
"printi": ["outnum"],
"readc": ["readchar"],
"readi": ["readnum"]
},
"usage": ["enum"]
},
"programs": [
{ "path": "helloworld.whitespace", "spec_version": "0.2" },
{ "path": "test.whitespace", "spec_version": "0.2" }
],
"commands": [
{
"type": "parser",
"bin": "LoadWhitespace.class",
"usage": "[<file>]",
"input": "<file> or stdin",
"notes": "Visits instructions in parse-order and executes push and printc on visit"
}
]
}