-
Notifications
You must be signed in to change notification settings - Fork 1
/
bsconfig.json
98 lines (98 loc) · 3.08 KB
/
bsconfig.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "bs-excmd",
"sources": [
{
"dir": "src",
"generators": [
{
"name": "prepend-uax31",
"edge": ["lexer.ml", ":", "uAX31.ml", "lexer.body.ml"]
},
{
"name": "menhir-tokens",
"edge": [
"tokens.generated.mli",
"tokens.generated.ml",
":",
"parserAutomaton.mly",
"parserUtils.mly"
]
},
{
"name": "menhir-annotate-types",
"edge": ["tokens.mli", ":", "tokens.generated.mli"]
},
{
"name": "menhir-annotate-types",
"edge": ["tokens.ml", ":", "tokens.generated.ml"]
},
{
"name": "menhir-lib",
"edge": ["menhirLib.ml", "menhirLib.mli", ":", "parserAutomaton.mly"]
},
{
"name": "menhir",
"edge": [
"parserAutomaton.ml",
"parserAutomaton.mli",
":",
"parserAutomaton.mly",
"parserUtils.mly",
"tokens.mli",
"tokens.ml"
]
}
]
},
{
"dir": "shim/native"
}
],
"ppx-flags": ["ppx-sedlex/ppx.js", "ppx-deriving/ppx.js"],
"generators": [
{
"name": "menhir",
"command": "menhir $src_root_dir/src/parserAutomaton.mly $src_root_dir/src/parserUtils.mly --external-tokens Tokens --base $src_root_dir/src/parserAutomaton --explain --table --lalr --inspection"
},
{
"name": "menhir-with-logging",
"command": "menhir $src_root_dir/src/parserAutomaton.mly $src_root_dir/src/parserUtils.mly --external-tokens Tokens --base $src_root_dir/src/parserAutomaton --explain --table --lalr --inspection --log-automaton 1 --log-code 1 --log-grammar 1 --trace"
},
{
"name": "menhir-tokens",
"command": "menhir --table --inspection --only-tokens $src_root_dir/src/parserAutomaton.mly $src_root_dir/src/parserUtils.mly --base $src_root_dir/src/tokens.generated"
},
{
"name": "menhir-annotate-types",
"command": "node $src_root_dir/scripts/annotateMenhirTypes.bs.js ${in} ${out}"
},
{
"name": "menhir-lib",
"command": "cp \"$$(menhir --suggest-menhirLib)\"/*.ml* $src_root_dir/src/"
},
{
"name": "prepend-uax31",
"command": "cp $src_root_dir/src/uAX31.ml ${out} && tail -n +2 $src_root_dir/src/lexer.body.ml >> ${out}"
}
],
"bs-dependencies": [
"bs-sedlex",
"bs-deriving",
"bs-uchar",
"bs-gen",
"@elliottcable/bs-result"
],
"package-specs": [
{
"module": "es6",
"in-source": true
},
{
"module": "commonjs",
"in-source": false
}
],
"suffix": ".bs.js",
"bsc-flags": ["-bs-super-errors", "-bs-no-version-header", "-w -9", "-open UcharShim"],
"refmt": 3
}