-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.json
50 lines (50 loc) · 1.42 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
{
"id": "r/bmazoure",
"name": "Whitespace",
"authors": ["Bogdan Mazoure"],
"license": "none",
"languages": ["R"],
"tags": ["interpreter", "grammar DFA"],
"date": "2016-07-30 12:44:29 -0400",
"spec_version": "0.2",
"source": ["https://github.com/bmazoure/whitespace"],
"submodules": [{ "path": "whitespace", "url": "https://github.com/bmazoure/whitespace" }],
"assembly": {
"mnemonics": {
"push": "<number>",
"dup": "dup",
"swap": "swap",
"drop": "del",
"add": "+",
"sub": "-",
"mul": "*",
"div": "/",
"mod": "%",
"store": "store",
"retrieve": "retrieve",
"label": "mark <label>",
"call": "call <label>",
"jmp": "jp <label>",
"jz": "jz <label>",
"jn": "jn <label>",
"ret": "return",
"end": "end",
"printc": "printc",
"printi": "printn",
"readc": "getc",
"readi": "getn"
},
"patterns": { "label": "[01]*", "number": "-?[0-9]+" },
"usage": ["internal"]
},
"commands": [
{
"type": "interpreter",
"bin": "R/whitespace.R",
"dependencies": ["R"],
"install_dependencies": "Rscript -e 'install.packages(c(\"compositions\", \"readr\"), repos=\"http://cran.us.r-project.org\")'",
"usage": "Rscript -e 'source(\"R/whitespace.R\"); library(readr); compile(parse(dfa(read_file(\"<file>\"))))'"
}
],
"notes": "Comment characters are not supported"
}