forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
68 lines (68 loc) · 2.44 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
{
"id": "haskell/tomihisa244-visual",
"name": "visualWhiteSpace",
"authors": ["Tomihisa"],
"license": "BSD-3-Clause",
"languages": ["Haskell"],
"tags": ["interpreter", "mapping", "programs"],
"date": "2020-12-14 21:42:38 +0900",
"spec_version": "0.3",
"source": ["https://github.com/tomihisa244/visualWhiteSpace"],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": ["SetStackTop"],
"dup": ["CopyStackTop"],
"copy": ["NthCopytoSetStackTop"],
"swap": ["SwapStackTopSec"],
"drop": ["ThrowStackTop"],
"slide": ["RemoveNthInStack"],
"add": ["Add"],
"sub": ["Sub"],
"mul": ["Mul"],
"div": ["Div"],
"mod": ["Mod"],
"store": ["ValueToAdress"],
"retrieve": ["ValueToStackTop"],
"label": ["DefLabel"],
"call": ["Subroutine"],
"jmp": ["JumpLabel"],
"jz": ["IfStackTopisZeroThenJump"],
"jn": ["IfStackTopisNegThenJump"],
"ret": ["FinishSubroutine"],
"end": ["FinishProgram"],
"printc": ["StackTopOutChar"],
"printi": ["StackTopOutInt"],
"readc": ["ReadCharToAdress"],
"readi": ["ReadIntToAdress"]
},
"usage": ["enum"]
},
"mappings": [{ "space": "S", "tab": "T", "lf": "LF", "spaces_between": false, "extension": "wss" }],
"programs": [
{ "path": "examples/calc.ws", "equivalent": "calc.ws", "spec_version": "0.3" },
{ "path": "examples/count.ws", "equivalent": "count.ws", "spec_version": "0.3" },
{ "path": "examples/fact.ws", "equivalent": "fact.ws", "spec_version": "0.3" },
{ "path": "examples/hanoi.ws", "equivalent": "hanoi.ws", "spec_version": "0.3" },
{ "path": "examples/hworld.ws", "equivalent": "hworld.ws", "spec_version": "0.3" },
{ "path": "examples/loctest.ws", "equivalent": "loctest.ws", "spec_version": "0.3" },
{ "path": "examples/name.ws", "equivalent": "name.ws", "spec_version": "0.3" },
{ "path": "hworld.ws", "equivalent": "hworld.ws", "spec_version": "0.3" },
{ "path": "test.ws", "aux": ["test.wss"], "spec_version": "0.3", "desc": "FizzBuzz" }
],
"commands": [
{
"type": "interpreter",
"usage": "$0 <file> [-help | -show | -simple-show | -simple | -vis | -trace]",
"options": [
{ "short": "help" },
{ "short": "show" },
{ "short": "simple-show" },
{ "short": "simple" },
{ "short": "vis" },
{ "short": "trace" }
],
"option_parse": "manual"
}
]
}