-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
199 lines (199 loc) · 5.21 KB
/
package.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "gold-parser-tools",
"displayName": "GOLD Parser Tools",
"description": "VSCode Integration for GOLD Parsing Tools",
"publisher": "FredericKehrein",
"repository": "https://github.com/Warfley/gold-parser-tools",
"version": "0.0.3",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "GOLD Tools",
"properties": {
"gold.path": {
"type": "string",
"default": null,
"description": "Specifies the folder path containing the GOLD command line tools."
}
}
},
"languages": [
{
"id": "grm",
"aliases": [
"Gold Grammar",
"grm"
],
"extensions": [
".grm"
],
"configuration": "./language-configuration.json"
},
{
"id": "cgt",
"aliases": [
"Compiled Grammar Table",
"cgt"
],
"extensions": [
".cgt",
".egt"
]
}
],
"grammars": [
{
"language": "grm",
"scopeName": "source.grm",
"path": "./syntaxes/grm.tmLanguage.json"
}
],
"commands": [
{
"command": "gold-parser-tools.compileGrammar",
"title": "GOLD: Compile Grammar"
},
{
"command": "gold-parser-tools.parseWithGrammar",
"title": "GOLD: Parse current file"
},
{
"command": "gold-parser-tools.generateFromGrammar",
"title": "GOLD: Generate Parser from Grammar"
}
],
"keybindings": [
{
"command": "gold-parser-tools.compileGrammar",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c",
"when": "editorLangId == grm"
},
{
"command": "gold-parser-tools.parseWithGrammar",
"key": "ctrl+alt+p",
"mac": "cmd+alt+p"
},
{
"command": "gold-parser-tools.generateFromGrammar",
"key": "ctrl+alt+g",
"mac": "cmd+alt+g"
}
],
"breakpoints": [
{
"language": "grm"
}
],
"debuggers": [
{
"type": "grm",
"languages": [
"grm"
],
"label": "Parse with Grammar",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Path to the file to be parsed",
"default": "${file}"
},
"grammar": {
"type": "string",
"description": "Path to the grm, egt or cgt grammar to be used"
},
"start_paused": {
"type": "boolean",
"description": "Start paused to go stepwise through the document",
"default": false
},
"output_reductions": {
"type": "boolean",
"description": "Output reductions performad during parsing",
"default": true
},
"output_shifts": {
"type": "boolean",
"description": "Output shifts performed during parsing",
"default": false
},
"output_tokens": {
"type": "boolean",
"description": "Tokens recognized by the lexer",
"default": false
}
}
}
},
"initialConfigurations": [
{
"type": "grm",
"request": "launch",
"name": "Parse file with grammar",
"program": "${file}",
"start_paused": false,
"output_reductions": true,
"output_shifts": false,
"output_tokens": false
}
],
"configurationSnippets": [
{
"label": "GOLD: Parse with grammar",
"description": "Parse a file using a grammar",
"body": {
"type": "grm",
"request": "launch",
"name": "Parse file with grammar",
"program": "^\"\\${file}\"",
"start_paused": false,
"output_reductions": true,
"output_shifts": false,
"output_tokens": false
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.74.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"typescript": "^4.9.3"
},
"dependencies": {
"@vscode/debugadapter": "^1.58.0",
"@vscode/debugprotocol": "^1.58.0",
"@warfley/node-gold-engine": "^0.0.5"
}
}