-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
54 lines (54 loc) · 1.57 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
{
"id": "ocaml/matsud224-c2ws",
"name": "c2ws",
"authors": ["Daiki Matsunaga"],
"license": "Unlicense",
"languages": ["OCaml"],
"tags": ["language compiler"],
"date": "2015-11-18 08:34:51 +0900",
"spec_version": "0.3",
"source": ["https://github.com/matsud224/c2ws"],
"submodules": [{ "path": "c2ws", "url": "https://github.com/matsud224/c2ws" }],
"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": "STORE",
"retrieve": "RETRIEVE",
"label": "<<number>>:",
"call": "CALL <<number>>",
"jmp": "JUMP <<number>>",
"jz": "JZ <<number>>",
"jn": "JN <<number>>",
"ret": "RETURN",
"end": "END",
"printc": "OUTCHAR",
"printi": "OUTINT",
"readc": "INCHAR",
"readi": "ININT"
},
"indentation": "\t",
"usage": ["language compiler"]
},
"commands": [
{
"type": "language compiler",
"bin": "c2ws",
"usage": "[-S] < <file>",
"input": "stdin",
"output": "stdout",
"options": [{ "short": "S", "desc": "Output Whitespace assembler" }],
"option_parse": "OCaml Arg",
"notes": "Input file is a C program. Outputs Whitespace Assembly when -S given and Whitespace otherwise. Has built-in functions geti, getc, puti, putp, and putc for I/O. Variable declarations must be first in block and initializations must be separate."
}
]
}