-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
61 lines (61 loc) · 2.1 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
{
"id": "rust/jayshua",
"name": "Rust-Whitespace",
"authors": ["Jayshua Nelson"],
"license": "none",
"languages": ["Rust"],
"tags": ["interpreter", "disassembler", "programs"],
"date": "2016-05-08 16:05:03 -0700",
"spec_version": "0.2",
"source": ["https://github.com/Jayshua/rust-whitespace"],
"submodules": [{ "path": "rust-whitespace", "url": "https://github.com/Jayshua/rust-whitespace" }],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": "StackPush",
"dup": "StackDuplicate",
"swap": "StackSwap",
"drop": "StackDiscard",
"add": "Add",
"sub": "Subtract",
"mul": "Multiply",
"div": "Divide",
"mod": "Modulo",
"store": "HeapStore",
"retrieve": "HeapRetrieve",
"label": "Label",
"call": "Call",
"jmp": "Jump",
"jz": "JumpIfZero",
"jn": "JumpIfNegative",
"ret": "EndSubroutine",
"end": "Halt",
"printc": "OutputChar",
"printi": "OutputNumber",
"readc": "ReadChar",
"readi": "ReadNumber"
},
"usage": ["enum", "disassembler"]
},
"programs": [
{ "path": "examples/calculator.ws", "equivalent": "calc.ws", "spec_version": "0.2" },
{ "path": "examples/factorial.ws", "equivalent": "fact.ws", "spec_version": "0.2" },
{ "path": "examples/fibonacci.ws", "equivalent": "fibonacci.ws", "spec_version": "0.2" },
{ "path": "examples/hello_user.ws", "equivalent": "name.ws", "spec_version": "0.2" },
{ "path": "examples/hello_world.ws", "equivalent": "hworld.ws", "spec_version": "0.2" },
{ "path": "examples/rot13.ws", "equivalent": "rot13.ws", "spec_version": "0.2" },
{ "path": "examples/towers_of_hanoi.ws", "equivalent": "hanoi.ws", "spec_version": "0.2" },
{ "path": "examples/vigenere.ws", "spec_version": "0.2" }
],
"commands": [
{
"type": "interpreter",
"bin": "target/release/whitespace",
"usage": "[list] <file>",
"subcommands": [
{ "name": "run", "desc": "run the program (default)" },
{ "name": "list", "desc": "list the commands that the file contains" }
]
}
]
}