forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
58 lines (58 loc) · 1.67 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
{
"id": "julia/goropikari-whitespaces",
"name": "Whitespaces",
"authors": ["goropikari"],
"license": "MIT",
"languages": ["Julia"],
"tags": ["interpreter", "programs"],
"date": "2020-04-17 01:23:17 +0900",
"spec_version": "0.3",
"source": ["https://github.com/goropikari/Whitespaces.jl"],
"relations": [{ "id": "ruby/yhara-esolang-book", "type": "design" }],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": ["push"],
"dup": ["dup"],
"copy": ["copy"],
"swap": ["swap"],
"drop": ["discard"],
"slide": ["slide"],
"add": ["add"],
"sub": ["sub"],
"mul": ["mul"],
"div": ["div"],
"mod": ["mod"],
"store": ["heap_write"],
"retrieve": ["heap_read"],
"label": ["label"],
"call": ["call"],
"jmp": ["jump"],
"jz": ["jump_zero"],
"jn": ["jump_nega"],
"ret": ["return"],
"end": ["exit"],
"printc": ["char_out"],
"printi": ["num_out"],
"readc": ["char_in"],
"readi": ["num_in"]
},
"usage": ["enum"]
},
"programs": [
{ "path": "example/add.ws", "spec_version": "0.2" },
{ "path": "example/factorial.ws", "spec_version": "0.2" },
{ "path": "example/fizzbuzz.ws", "spec_version": "0.2" },
{ "path": "example/hi.ws", "spec_version": "0.2" }
],
"commands": [
{
"type": "interpreter",
"dependencies": ["Julia"],
"install_dependencies": "julia -e 'using Pkg; Pkg.instantiate()'",
"usage": "julia --project=. -e 'using Whitespaces; prog = Whitespace(read(ARGS[1], String)); compile!(prog); execute!(prog)' <file>",
"input": "<file>",
"output": "stdout"
}
]
}