forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
81 lines (81 loc) · 2.55 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
{
"id": "whitespace/keens-whitelie",
"name": "Whitelie",
"description": "Self-hosted Whitespace compiler for 64-bit Linux",
"authors": ["κeen"],
"license": "GPL-2.0-or-later",
"languages": ["Whitespace", "Ruby"],
"tags": ["compiler", "assembler", "programs"],
"date": "2020-03-31 23:46:45 +0900",
"spec_version": "0.3",
"source": [
"https://github.com/wspace/keens-whitelie",
"https://github.com/KeenS/whitelie",
"https://gist.github.com/KeenS/6081b0c802a4e575ddbacb1930680870",
"https://github.com/thaliaarchi/repo-archival/blob/main/scripts/wspace/keens-whitelie.sh",
"https://keens.github.io/blog/2020/04/01/whitespacenoserufuhosutokonpairatsukuttayo/",
"https://keens.github.io/blog/2020/04/01/taneakirakashi__whitespacekonpairawotsukuttahanashinouragawa/",
"https://github.com/KeenS/KeenS.github.io/blob/master/content/post/Whitespacenoserufuhosutokonpairatsukuttayo.md",
"https://github.com/KeenS/KeenS.github.io/blob/master/content/post/taneakirakashi__Whitespacekonpairawotsukuttahanashinouragawa.md"
],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": ["Stack push"],
"dup": ["Stack dup"],
"copy": ["Stack copy"],
"swap": ["Stack swap"],
"drop": ["Stack discard"],
"slide": ["Stack slide"],
"add": ["Arith add"],
"sub": ["Arith sub"],
"mul": ["Arith mul"],
"div": ["Arith div"],
"mod": ["Arith mod"],
"store": ["Heap store"],
"retrieve": ["Heap retrieve"],
"label": ["Flow label"],
"call": ["Flow call"],
"jmp": ["Flow jump"],
"jz": ["Flow jz"],
"jn": ["Flow jneg"],
"ret": ["Flow return"],
"end": ["Flow end"],
"printc": ["IO outchar"],
"printi": ["IO outnumber"],
"readc": ["IO readchar"],
"readi": ["IO readnumber"]
},
"case_sensitive_mnemonics": true,
"line_comments": ["#"],
"indentation": " ",
"block_indentation": true,
"usage": ["assembler", "programs"],
"extension": "wsa"
},
"programs": [
{
"path": "whitelie.wsa",
"generated": "whitelie.ws",
"inputs": ["whitelie.ws"],
"outputs": ["whitelie"],
"generate": "ruby asm.rb whitelie.wsa > whitelie.ws"
}
],
"commands": [
{
"type": "compiler",
"bin": "whitelie",
"usage": "$0 < <file>",
"notes": "Only runs on 64-bit Linux"
},
{
"type": "assembler",
"bin": "asm.rb",
"dependencies": ["Ruby"],
"usage": "ruby $0 <file>",
"input": "<file>",
"output": "stdout"
}
]
}