-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPolygen.sublime-build
48 lines (41 loc) · 1.01 KB
/
Polygen.sublime-build
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
{
"shell_cmd": "polygen \"$file\"",
"working_dir": "$file_path",
"selector": "source.polygen",
"file_patterns": [ "*.grm" ],
"variants":
[
{
"name": "verbose",
"shell_cmd": "polygen -v \"$file\"",
},
{
"name": "build to file (<filename>.out.txt)",
"shell_cmd": "polygen \"$file\" -o \"$file_base_name.out.txt\"",
},
{
"name": "build to file verbose",
"shell_cmd": "polygen -v \"$file\" -o \"$file_base_name.out.txt\"",
},
{
"name": "check grammar",
"shell_cmd": "polygen -t \"$file\" 2>&1"
},
{
"name": "check grammar (pedantic)",
"shell_cmd": "polygen -t -pedantic \"$file\" 2>&1"
},
{
"name": "show grammar info",
"shell_cmd": "polygen -info \"$file\" 2>&1"
},
{
"name": "preprocess",
"shell_cmd": "polygen -pre \"$file\""
},
{
"name": "preprocess to file (<filename>.pre.txt)",
"shell_cmd": "polygen -pre \"$file\" -o \"$file_base_name.pre.txt\""
}
]
}