forked from wspace/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.json
80 lines (80 loc) · 2.99 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
{
"id": "c/remigascou",
"name": "Whitespace Parser",
"authors": ["Rémi Gascou"],
"license": "none",
"languages": ["C", "Yacc", "Lex"],
"tags": ["language", "assembler", "disassembler", "syntax highlighting", "programs"],
"date": "2020-03-13 12:59:01 +0100",
"spec_version": "0.2",
"source": [
"https://github.com/wspace/remigascou-c",
"https://github.com/RemiGascou/small-projects/tree/master/C/whitespace",
"https://github.com/thaliaarchi/repo-archival/blob/main/scripts/wspace/remigascou-c.sh"
],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": ["push"],
"dup": ["dup"],
"swap": ["swap"],
"drop": ["pop"],
"add": ["add"],
"sub": ["sub"],
"mul": ["mul"],
"div": ["div"],
"mod": ["mod"],
"store": ["store"],
"retrieve": ["load"],
"label": ["lbl"],
"call": ["call"],
"jmp": ["jmp"],
"jz": ["jmpz"],
"jn": ["jmpn"],
"ret": ["leave"],
"end": ["end"],
"printc": ["printc"],
"printi": ["printn"],
"readc": ["readc"],
"readi": ["readn"]
},
"line_comments": [";"],
"usage": ["syntax highlighter"],
"extension": "asm"
},
"programs": [
{ "path": "testprograms/full.ws" },
{ "path": "testprograms/ws/full.ws" },
{ "path": "testprograms/ws/labels.ws" },
{ "path": "testprograms/ws/tes01.ws" },
{ "path": "testprograms/wsasm/test.wsasm" },
{ "path": "lexxyacc/asmtestcases/mini1.asm" },
{ "path": "lexxyacc/asmtestcases/mini2.asm" },
{ "path": "lexxyacc/asmtestcases/mini3.asm" },
{ "path": "lexxyacc/asmtestcases/mini4.asm" },
{ "path": "lexxyacc/asmtestcases/mini5.asm" },
{ "path": "lexxyacc/asmtestcases/mini6.asm" },
{ "path": "lexxyacc/testcases/bad_printf.c" },
{ "path": "lexxyacc/testcases/bad_var_declaration.c" },
{ "path": "lexxyacc/testcases/good_miniprog.c" },
{ "path": "lexxyacc/testcases/good_miniprog0.c" },
{ "path": "lexxyacc/testcases/good_miniprog1.c" },
{ "path": "lexxyacc/testcases/good_miniprog2.c" },
{ "path": "lexxyacc/testcases/good_miniprog3.c" },
{ "path": "lexxyacc/testcases/good_miniprog4.c" },
{ "path": "lexxyacc/testcases/good_miniprog5.c" },
{ "path": "lexxyacc/testcases/good_miniprog6.c" },
{ "path": "lexxyacc/testcases/good_printf_int.c" },
{ "path": "lexxyacc/testcases/good_printf_string.c" },
{ "path": "lexxyacc/testcases/good_var_declaration.c" }
],
"build_errors": "Yacc syntax errors",
"commands": [
{ "type": "assembler", "bin": "dev/bin/compiler", "usage": "< <file>" },
{ "type": "disassembler", "bin": "dev/bin/decompiler", "usage": "< <file>" },
{ "type": "language compiler", "bin": "lexxyacc/compiler/compiler" },
{ "type": "syntax highlighter", "bin": "dev/beautify_ws.sh", "usage": "<file>" },
{ "type": "syntax highlighter", "bin": "dev/beautify_wsasm.sh", "usage": "<file>" }
],
"todo": "Figure out how to build and run it and better document assembly dialect"
}