-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.json
84 lines (84 loc) · 2.18 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
81
82
83
84
{
"id": "python/avantgarde95",
"name": "Whitespace",
"authors": ["Hunmin Park (Avantgarde95)"],
"license": "none",
"languages": ["Python"],
"tags": ["assembler", "mapping", "programs"],
"date": "2020-12-18 20:29:17 +0900",
"spec_version": "0.3",
"source": ["https://github.com/Avantgarde95/Whitespace"],
"submodules": [{ "path": "Whitespace", "url": "https://github.com/Avantgarde95/Whitespace" }],
"whitespace": { "extension": "ws" },
"assembly": {
"mnemonics": {
"push": ["push <number>", "push <char>"],
"dup": "dup",
"copy": "dupn",
"swap": "swap",
"drop": "pop",
"add": "op+",
"sub": "op-",
"mul": "op*",
"div": "op/",
"label": "label",
"jmp": "jump",
"jz": "jumpz",
"jn": "jumpn",
"end": "exit",
"printc": "print",
"printi": "printn"
},
"patterns": { "char": ".|\\\\[stn]", "number": "-?\\d+" },
"line_comments": ["#"],
"indentation": " ",
"label_indentation": " ",
"block_indentation": true,
"usage": ["assembler", "programs"],
"extension": "txt"
},
"mappings": [
{
"space": "S",
"tab": "T",
"lf": "L",
"space_before_arg": true,
"line_comment": "#",
"extension": "es"
}
],
"programs": [
{
"path": "original/ChristmasTree.txt",
"generated": "converted/ChristmasTree.ws",
"aux": ["converted/ChristmasTree.es"],
"spec_version": "0.3"
},
{
"path": "original/DoubleLoop.txt",
"generated": "converted/DoubleLoop.ws",
"aux": ["converted/DoubleLoop.es"],
"spec_version": "0.2"
},
{
"path": "original/Loop.txt",
"generated": "converted/Loop.ws",
"aux": ["converted/Loop.es"],
"spec_version": "0.2"
},
{
"path": "original/Test.txt",
"generated": "converted/Test.ws",
"aux": ["converted/Test.es"],
"spec_version": "0.2"
}
],
"commands": [
{
"bin": "Convert.py",
"usage": "<file:basename> <file:dirname> <output_dir>",
"input": "<file:dirname>/<file:basename>",
"output": "<output_dir>/<file:basename:no_ext>.ws and <output_dir>/<file:basename:no_ext>.es"
}
]
}