yapp 5.1.335 → 5.1.337

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +54 -28
  2. package/lib/example/view/div/sizeable/left.js +2 -2
  3. package/lib/example/view/div/sizeable/top.js +2 -2
  4. package/lib/example/view/javascript.js +15 -11
  5. package/lib/plugin/javascript/bnf.js +282 -0
  6. package/lib/plugin/javascript/entries.js +36 -0
  7. package/lib/plugin/javascript/index.js +31 -0
  8. package/lib/plugin/javascript/lexer.js +38 -0
  9. package/lib/plugin/javascript/parser.js +33 -0
  10. package/lib/plugin/javascript/processor.js +82 -0
  11. package/lib/plugin/json/bnf.js +34 -0
  12. package/lib/plugin/json/entries.js +27 -0
  13. package/lib/plugin/json/index.js +31 -0
  14. package/lib/plugin/json/lexer.js +38 -0
  15. package/lib/plugin/json/parser.js +30 -0
  16. package/lib/plugin/json/processor.js +35 -0
  17. package/lib/plugin/plainText/bnf.js +18 -0
  18. package/lib/plugin/plainText/entries.js +18 -0
  19. package/lib/plugin/plainText/index.js +31 -0
  20. package/lib/plugin/plainText/lexer.js +38 -0
  21. package/lib/plugin/plainText/parser.js +30 -0
  22. package/lib/plugin/plainText/processor.js +26 -0
  23. package/lib/plugin/xml/bnf.js +58 -0
  24. package/lib/plugin/xml/entries.js +24 -0
  25. package/lib/plugin/xml/index.js +31 -0
  26. package/lib/plugin/xml/lexer.js +38 -0
  27. package/lib/plugin/xml/parser.js +30 -0
  28. package/lib/plugin/xml/processor.js +50 -0
  29. package/lib/utilities/plugin.js +1 -1
  30. package/package.json +7 -7
  31. package/src/example/view/div/sizeable/left.js +1 -1
  32. package/src/example/view/div/sizeable/top.js +1 -1
  33. package/src/example/view/javascript.js +16 -10
  34. package/src/{parser/javascript.js → plugin/javascript/bnf.js} +71 -81
  35. package/src/plugin/javascript/entries.js +27 -0
  36. package/src/plugin/{javascript.js → javascript/index.js} +5 -5
  37. package/src/{lexer/javascript.js → plugin/javascript/lexer.js} +1 -23
  38. package/src/plugin/javascript/parser.js +24 -0
  39. package/src/{processor/javascript.js → plugin/javascript/processor.js} +7 -7
  40. package/src/plugin/json/bnf.js +25 -0
  41. package/src/plugin/json/entries.js +18 -0
  42. package/src/plugin/{json.js → json/index.js} +5 -5
  43. package/src/{lexer/json.js → plugin/json/lexer.js} +1 -14
  44. package/src/plugin/json/parser.js +18 -0
  45. package/src/{processor/json.js → plugin/json/processor.js} +2 -2
  46. package/src/plugin/plainText/bnf.js +9 -0
  47. package/src/plugin/plainText/entries.js +9 -0
  48. package/src/plugin/{plainText.js → plainText/index.js} +5 -5
  49. package/src/{lexer/plainText.js → plugin/plainText/lexer.js} +1 -5
  50. package/src/{parser/plainText.js → plugin/plainText/parser.js} +3 -6
  51. package/src/{processor/plainText.js → plugin/plainText/processor.js} +1 -1
  52. package/src/{parser/xml.js → plugin/xml/bnf.js} +2 -14
  53. package/src/plugin/xml/entries.js +15 -0
  54. package/src/plugin/{xml.js → xml/index.js} +5 -5
  55. package/src/{lexer/xml.js → plugin/xml/lexer.js} +1 -11
  56. package/src/plugin/xml/parser.js +18 -0
  57. package/src/{processor/xml.js → plugin/xml/processor.js} +5 -5
  58. package/src/utilities/plugin.js +4 -4
  59. package/lib/lexer/javascript.js +0 -55
  60. package/lib/lexer/json.js +0 -46
  61. package/lib/lexer/plainText.js +0 -37
  62. package/lib/lexer/xml.js +0 -43
  63. package/lib/parser/javascript.js +0 -289
  64. package/lib/parser/json.js +0 -44
  65. package/lib/parser/plainText.js +0 -28
  66. package/lib/parser/xml.js +0 -68
  67. package/lib/plugin/javascript.js +0 -31
  68. package/lib/plugin/json.js +0 -31
  69. package/lib/plugin/plainText.js +0 -31
  70. package/lib/plugin/xml.js +0 -31
  71. package/lib/processor/javascript.js +0 -82
  72. package/lib/processor/json.js +0 -35
  73. package/lib/processor/plainText.js +0 -26
  74. package/lib/processor/xml.js +0 -50
  75. package/src/parser/json.js +0 -37
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Yapp's Another Pretty Printer.
4
4
 
5
- *If you just want to see Yapp in action without further ado*, then clone this repository, run `npm install` and `npm start`, and then open your browser at http://localhost:8888.
5
+ *If you just want to see Yapp in action without further ado* then clone this repository, run `npm install` and `npm start`, and then open your browser at http://localhost:8888.
6
6
 
7
7
  ### Contents
8
8
 
@@ -20,7 +20,13 @@ Yapp's Another Pretty Printer.
20
20
 
21
21
  ## Introduction
22
22
 
23
- Yapp is another pretty printer and a basic text editor. It has both a lexer and a parser under the hood, and can process content after parsing in order to refine its appearance still further. The result is an experience that rivals the best open source and commercial pretty printers. Yapp is also configurable. You can style it overall or target the syntax highlighting for specific languages. Its plugin architecture allows it to support additional languages. It also supports [Fira Code](https://github.com/tonsky/FiraCode).
23
+ Yapp is another pretty printer and a basic text editor.
24
+ It has both a lexer and a parser under the hood, and can process content after parsing in order to refine its appearance still further.
25
+ The result is an experience that rivals the best open source and commercial pretty printers.
26
+ Yapp is also configurable.
27
+ You can style it overall or target the syntax highlighting for specific languages.
28
+ Its plugin architecture allows it to support additional languages.
29
+ It also supports [Fira Code](https://github.com/tonsky/FiraCode).
24
30
 
25
31
  ## Installation
26
32
 
@@ -48,13 +54,16 @@ The examples will then be available at the following URL:
48
54
 
49
55
  http://localhost:8888
50
56
 
51
- The source for the examples can be found in the `src/examples.js` file and corresponding `src/example` folder. You are encouraged to try the examples whilst reading what follows. You can rebuild them on the fly with the following command:
57
+ The source for the examples can be found in the `src/examples.js` file and corresponding `src/example` folder.
58
+ You are encouraged to try the examples whilst reading what follows.
59
+ You can rebuild them on the fly with the following command:
52
60
 
53
61
  npm run watch-debug
54
62
 
55
63
  The development server will reload the page whenever you make changes.
56
64
 
57
- One last thing to bear in mind is that this package is included by way of a relative rather than a package import. If you are importing it into your own application, however, you should use the standard package import.
65
+ One last thing to bear in mind is that this package is included by way of a relative rather than a package import.
66
+ If you are importing it into your own application, however, then you should use the standard package import.
58
67
 
59
68
  ## Usage
60
69
 
@@ -89,7 +98,8 @@ mountYapp(yapp, body);
89
98
  unmountYapp(yapp); // At some later time.
90
99
  ```
91
100
 
92
- Note that if you take this approach then you must call the `mountYapp()` function with the Yapp instance as an argument. Similarly if you remove an instance of Yapp from the DOM then you must call the `unmountYapp()` function.
101
+ Note that if you take this approach then you must call the `mountYapp()` function with the Yapp instance as an argument.
102
+ Similarly if you remove an instance of Yapp from the DOM then you must call the `unmountYapp()` function.
93
103
 
94
104
  ### Make use of an Easy element
95
105
 
@@ -148,7 +158,9 @@ Note that in all of the three use cases above you must call the `renderYappStyle
148
158
 
149
159
  ### Other considerations
150
160
 
151
- Yapp will set its own height by default, based on its content. On the other hand its width is set to `100%`, so you will probably want to mount it in a containing element rather than the body element. If you are using Easy elements, for example, something like the following will work:
161
+ Yapp will set its own height by default, based on its content.
162
+ On the other hand its width is set to `100%`, so you will probably want to mount it in a containing element rather than the body element.
163
+ If you are using Easy elements, for example, then something like the following will work:
152
164
 
153
165
  ```
154
166
  import { Element } from "easy";
@@ -192,11 +204,13 @@ function coCustomntentChangeHandler(content) {
192
204
  }
193
205
  ```
194
206
 
195
- Note that the second of the callback's arguments is a reference to the instance of Yapp, in case one is not available by other means. Note also that a `getContent()` method is supplied.
207
+ Note that the second of the callback's arguments is a reference to the instance of Yapp, in case one is not available by other means.
208
+ Note also that a `getContent()` method is supplied.
196
209
 
197
210
  ## Fira Code support
198
211
 
199
- Yapp supports [Fira Code](https://github.com/tonsky/FiraCode). In order to enable it, either add a `firaCode` property set to `true` to the ' `configuration` object if you are using the `fromContentAndConfiguration(...)` factory method or add a `firaCode` boolean attribute if using JSX:
212
+ Yapp supports [Fira Code](https://github.com/tonsky/FiraCode).
213
+ In order to enable it, either add a `firaCode` property set to `true` to the ' `configuration` object if you are using the `fromContentAndConfiguration(...)` factory method or add a `firaCode` boolean attribute if using JSX:
200
214
 
201
215
  ```
202
216
  <Yapp firaCode ... >{`
@@ -206,7 +220,9 @@ Yapp supports [Fira Code](https://github.com/tonsky/FiraCode). In order to enabl
206
220
  `}</Yapp>
207
221
  ```
208
222
 
209
- If you choose to enable Fira Code then you need to provide the necessary web font files. These can be found in the `css/` directory of this repository and can be utilised as-is. Here is an example of the CSS that references them:
223
+ If you choose to enable Fira Code then you need to provide the necessary web font files.
224
+ These can be found in the `css/` directory of this repository and can be utilised as-is.
225
+ Here is an example of the CSS that references them:
210
226
 
211
227
  ```
212
228
  @font-face {
@@ -225,7 +241,8 @@ You can also preload the font files by putting something like the following in t
225
241
  <link rel="preload" href="/css/woff2/Fira Code-Regular.woff2" as="font" type="font/woff2" crossorigin >
226
242
  ```
227
243
 
228
- Note that both the path and the host of the URLs are assumed fixed in the snippets above but this may not be the case. Instructions on how to rectify this can be found in the section on styling Yapp that follows:
244
+ Note that both the path and the host of the URLs are assumed fixed in the snippets above but this may not be the case.
245
+ Instructions on how to rectify this can be found in the section on styling Yapp that follows:
229
246
 
230
247
  ## Styling Yapp
231
248
 
@@ -241,7 +258,8 @@ renderYappStyles();
241
258
 
242
259
  Rendering the styles in this manner should always be done before any instance of Yapp is mounted, but only needs to be done once.
243
260
 
244
- If you do not want to alter Yapp's styles any further then you never need to do any more than this. On the other hand if you do want to make changes to Yapp's styles then you must eschew the `renderYappStyles()` function in favour of a more refined approach:
261
+ If you do not want to alter Yapp's styles any further then you never need to do any more than this.
262
+ On the other hand if you do want to make changes to Yapp's styles then you must eschew the `renderYappStyles()` function in favour of a more refined approach:
245
263
 
246
264
  ```
247
265
  "use strict";
@@ -259,7 +277,8 @@ renderStyle(syntaxStyle);
259
277
  renderStyle(firaCodeStyle);
260
278
  ```
261
279
 
262
- Now the `renderStyle()` function is being utilised to render each of Yapp's styles individually. This is pretty much all that the `renderYappStyles()` function, in fact.
280
+ Now the `renderStyle()` function is being utilised to render each of Yapp's styles individually.
281
+ This is pretty much all that the `renderYappStyles()` function, in fact.
263
282
 
264
283
  We cover the three individual styles next.
265
284
 
@@ -269,7 +288,8 @@ Here is the default overall style:
269
288
 
270
289
  https://github.com/djalbat/yapp/blob/master/src/style/yapp.js
271
290
 
272
- If you want something different, simply copy this style and make the requisite changes. Or you can override specific styles by making use of CSS classes.
291
+ If you want something different then simply copy this style and make the requisite changes.
292
+ Or you can override specific styles by making use of CSS classes.
273
293
 
274
294
  ### Syntax styles
275
295
 
@@ -277,9 +297,11 @@ Here is the syntax style:
277
297
 
278
298
  https://github.com/djalbat/yapp/blob/master/src/style/syntax.js
279
299
 
280
- You can see that it is comprised of styles for three of the four languages that Yapp supports by default. There is no spefiic style for plain text. There is a default style, however.
300
+ You can see that it is comprised of styles for three of the four languages that Yapp supports by default.
301
+ There is no spefiic style for plain text. There is a default style, however.
281
302
 
282
- In a similar vein to the overall style you can either copy and completely replace syntax styles of override specific ones. For example, if you added support for the Java language then you might want to add something like the following to a new, Java-specific style:
303
+ In a similar vein to the overall style you can either copy and completely replace syntax styles of override specific ones.
304
+ For example, if you added support for the Java language then you might want to add something like the following to a new, Java-specific style:
283
305
 
284
306
  ```
285
307
  .yapp .java.syntax > .keyword { color: #a93927; }
@@ -293,7 +315,8 @@ If the paths of the web font files are different to the default then you may wan
293
315
 
294
316
  https://github.com/djalbat/yapp/blob/master/src/style/firaCode.js
295
317
 
296
- Note that it also takes a `host` argument. In fact if all you want to do is change the host then you can do this directly from the `renderYappStyles()` function...
318
+ Note that it also takes a `host` argument.
319
+ In fact if all you want to do is change the host then you can do this directly from the `renderYappStyles()` function...
297
320
 
298
321
  ```
299
322
  "use strict";
@@ -309,26 +332,28 @@ renderYappStyles(host);
309
332
 
310
333
  ## Plugins
311
334
 
312
- If you have been supplied with a plugin, or have written your own, it is straightforward to appraise Yapp of it by way of a property of the `configuration` argument of the `fromContentAndConfiguration(...)` factory method or as a JSX attribute. The remainder of this section covers authoring plugins. It assumes that you are able to build the examples, each of which corresponds to a built-in plugin. See the section on building later on for details.
335
+ If you have been supplied with a plugin, or have written your own, then it is straightforward to appraise Yapp of it by way of a property of the `configuration` argument of the `fromContentAndConfiguration(...)` factory method or as a JSX attribute.
336
+ The remainder of this section covers authoring plugins. It assumes that you are able to build the examples, each of which corresponds to a built-in plugin. See the section on building later on for details.
313
337
 
314
338
  To begin to author your own plugin, follow these steps:
315
339
 
316
340
  1. Add an item corresponding to your plugin's language to the `index.html` file in the root of the repository.
317
341
 
318
- 2. Edit the [`es6/example.js`](https://github.com/djalbat/yapp/blob/master/es6/example.js) file, importing the view for the plugin and adding to the `switch` statement as required. Note that since you have yet to create the view, the `import` the build will break.
342
+ 2. Edit the [`es6/example.js`](https://github.com/djalbat/yapp/blob/master/es6/example.js) file, importing the view for the plugin and adding to the `switch` statement as required.
343
+ Note that since you have yet to create the view, the `import` the build will break.
319
344
 
320
- 3. Create a view for the plugin. Aside from the obvious specifics these views are just boilerplate and the easiest thing to do is just to copy a file for an existing one, for example the [`es6/example/view/javascript.js`](https://github.com/djalbat/yapp/blob/master/es6/example/view/javascript.js) file, and alter it as required.
345
+ 3. Create a view for the plugin.
346
+ Aside from the obvious specifics these views are just boilerplate and the easiest thing to do is just to copy a file for an existing one, for example the [`es6/example/view/javascript.js`](https://github.com/djalbat/yapp/blob/master/es6/example/view/javascript.js) file, and alter it as required.
321
347
 
322
- 4. Create the plugin itself. Again, plugins are entirely boilerplate and the best approach is to copy the file of an existing one, for example the [`es6/plugin/javascript.js`](https://github.com/djalbat/yapp/blob/master/es6/plugin/javascript.js) file.
323
-
324
- 5. Do the same for your plugin's constituent lexer, parser and processor files. Each of these constituents are non-trivial and it is recommended that you copy those of the simple plain text plugin rather than those of an advanced plugin such as the JavaScript plugin. The relevant files are:
325
- - [`es6/lexer/plainText.js`](https://github.com/djalbat/yapp/blob/master/es6/lexer/plainText.js)
326
- - [`es6/parser/plainText.js`](https://github.com/djalbat/yapp/blob/master/es6/parser/plainText.js)
327
- - [`es6/processor/plainText.js`](https://github.com/djalbat/yapp/blob/master/es6/processor/plainText.js)
348
+ 4. Create the plugin itself.
349
+ The best way to do this is to duplicate a plugin, for example the XML plugin in the `plugin/` folder.
328
350
 
329
351
  Once these files are in place, the examples should build again.
330
352
 
331
- The fun now starts with devising the necessary lexical entries and BNF for your plugin. This can be done dynamically within the example. Whenever you make progress, you can copy lexical entries and BNF back into the requisite variables in your lexer and parser. For the processor, if that functionality is needed, it is recommended that you have a look at the JavaScript processor.
353
+ The fun now starts with devising the necessary lexical entries and BNF for your plugin.
354
+ This can be done dynamically within the example.
355
+ Whenever you make progress, you can copy lexical entries and BNF back into the requisite variables in your lexer and parser.
356
+ For the processor, if that functionality is needed, it is recommended that you have a look at the JavaScript processor.
332
357
 
333
358
  ## Building
334
359
 
@@ -337,9 +362,10 @@ Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have
337
362
  npm run build-debug
338
363
  npm run watch-debug
339
364
 
340
- As well as building Yapp itself, this will build the examples. The source code for the examples can be found in the `es6/example.js` file and in the files and sub-directories of the `es6/example` directory.
365
+ As well as building Yapp itself, this will build the examples.
366
+ The source code for the examples can be found in the `es6/example.js` file and in the files and sub-directories of the `es6/example` directory.
341
367
 
342
- If you wish to make use of live reloading while working on the examples, use `npm start` and the examples index page wll be available at http://localhost:8888.
368
+ If you wish to make use of live reloading while working on the examples then use `npm start` and the examples index page wll be available at http://localhost:8888.
343
369
 
344
370
  ## Acknowledgements
345
371
 
@@ -22,9 +22,9 @@ class LeftSizeableDiv extends _easylayout.SizeableDiv {
22
22
  }
23
23
  const _default = (0, _easywithstyle.default)(LeftSizeableDiv)`
24
24
 
25
- width: 80rem;
25
+ width: 120rem;
26
26
  min-width: 24rem;
27
27
 
28
28
  `;
29
29
 
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L3NpemVhYmxlL2xlZnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l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TaXplYWJsZURpdiBleHRlbmRzIFNpemVhYmxlRGl2IHtcbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJsZWZ0XCJcbiAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgd2l0aFN0eWxlKExlZnRTaXplYWJsZURpdilgXG5cbiAgd2lkdGg6IDEyMHJlbTtcbiAgbWluLXdpZHRoOiAyNHJlbTtcbiAgXG5gO1xuIl0sIm5hbWVzIjpbIkxlZnRTaXplYWJsZURpdiIsIlNpemVhYmxlRGl2IiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiLCJ3aXRoU3R5bGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQVlBOzs7ZUFBQTs7O3NFQVZzQjs0QkFFTTs7Ozs7O0FBRTVCLE1BQU1BLHdCQUF3QkMsdUJBQVc7SUFDdkMsT0FBT0Msb0JBQW9CO1FBQ3pCQyxXQUFXO0lBQ2IsRUFBRTtBQUNKO01BRUEsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQ0osZ0JBQWdCLENBQUM7Ozs7O0FBSzFDLENBQUMifQ==
@@ -22,9 +22,9 @@ class TopSizeableDiv extends _easylayout.SizeableDiv {
22
22
  }
23
23
  const _default = (0, _easywithstyle.default)(TopSizeableDiv)`
24
24
 
25
- height: 64rem;
25
+ height: 32rem;
26
26
  min-height: 12rem;
27
27
 
28
28
  `;
29
29
 
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L3NpemVhYmxlL3RvcC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgU2l6ZWFibGVE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pYyBkZWZhdWx0UHJvcGVydGllcyA9IHtcbiAgICBjbGFzc05hbWU6IFwidG9wXCJcbiAgfTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgd2l0aFN0eWxlKFRvcFNpemVhYmxlRGl2KWBcblxuICBoZWlnaHQ6IDMycmVtO1xuICBtaW4taGVpZ2h0OiAxMnJlbTtcbiAgXG5gO1xuIl0sIm5hbWVzIjpbIlRvcFNpemVhYmxlRGl2IiwiU2l6ZWFibGVEaXYiLCJkZWZhdWx0UHJvcGVydGllcyIsImNsYXNzTmFtZSIsIndpdGhTdHlsZSJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBWUE7OztlQUFBOzs7c0VBVnNCOzRCQUVNOzs7Ozs7QUFFNUIsTUFBTUEsdUJBQXVCQyx1QkFBVztJQUN0QyxPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0o7TUFFQSxXQUFlQyxJQUFBQSxzQkFBUyxFQUFDSixlQUFlLENBQUM7Ozs7O0FBS3pDLENBQUMifQ==
@@ -18,7 +18,19 @@ function _interop_require_default(obj) {
18
18
  class JavaScriptView extends _view.default {
19
19
  static Plugin = _javascript.default;
20
20
  static firaCode = true;
21
- static initialContent = `"use strict";
21
+ static initialContent = `
22
+ withStyle\`
23
+
24
+ colour: #333;
25
+
26
+ \`.`;
27
+ static defaultProperties = {
28
+ className: "javascript"
29
+ };
30
+ }
31
+ /*
32
+
33
+ "use strict";
22
34
 
23
35
  import "juxtapose";
24
36
 
@@ -38,14 +50,6 @@ function simpleApplication(selector) {
38
50
  );
39
51
  }
40
52
 
41
- export default withStyle(simpleApplication)\`
42
-
43
- color: #333;
44
-
45
- \`;`;
46
- static defaultProperties = {
47
- className: "javascript"
48
- };
49
- }
50
53
 
51
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvamF2YXNjcmlwdC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c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBcImp1eHRhcG9zZVwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgLy8vXG5cbmltcG9ydCB7IEJvZHkgfSBmcm9tIFwiZWFzeVwiO1xuXG5mdW5jdGlvbiBzaW1wbGVBcHBsaWNhdGlvbihzZWxlY3Rvcikge1xuICBjb25zdCBib2R5ID0gbmV3IEJvZHkoc2VsZWN0b3IpO1xuXG4gIGJvZHkubW91bnQoXG5cbiAgICA8cD5cbiAgICAgIEEgc2ltcGxlIGFwcGxpY2F0aW9uLlxuICAgIDwvcD5cblxuICApO1xufVxuXG5cbiovIl0sIm5hbWVzIjpbIkphdmFTY3JpcHRWaWV3IiwiVmlldyIsIlBsdWdpbiIsIkphdmFTY3JpcHRQbHVnaW4iLCJmaXJhQ29kZSIsImluaXRpYWxDb250ZW50IiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBcUJBOzs7NkRBSko7bUVBRVk7Ozs7OztBQUVkLE1BQU1BLHVCQUF1QkMsYUFBSTtJQUM5QyxPQUFPQyxTQUFTQyxtQkFBZ0IsQ0FBQztJQUVqQyxPQUFPQyxXQUFXLEtBQUs7SUFFdkIsT0FBT0MsaUJBQWlCLENBQUM7Ozs7O0dBS3hCLENBQUMsQ0FBQztJQUVILE9BQU9DLG9CQUFvQjtRQUN6QkMsV0FBVztJQUNiLEVBQUU7QUFDSjtDQUVBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQXVCQSJ9
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default" /*
6
+ const bnf = `
7
+
8
+ javaScript ::= preamble? ( statement | function | class | error )* ;
9
+
10
+
11
+ preamble ::= "\\"use strict\\""<NO_WHITESPACE>";" ;
12
+
13
+
14
+ statement ::= statementBody... ";"
15
+
16
+ | "{" ( statement | function )* "}"
17
+
18
+ | "if" "(" expression... ")" statement ( "else" statement )?
19
+
20
+ | "for" ( ( "(" initialiser ( ";" expression )? ( ";" expression )? ")" statement )
21
+
22
+ | ( "(" variable "in" expression... ")" statement )
23
+
24
+ | ( "await"? "(" variable "of" expression... ")" statement ) )
25
+
26
+ | "do" statement "while" "(" expression... ")"
27
+
28
+ | "while" "(" expression... ")" statement
29
+
30
+ | "switch" "(" expression... ")" "{" case* defaultCase? "}"
31
+
32
+ | try ( ( catch* finally ) | catch+ )
33
+
34
+ ;
35
+
36
+
37
+ class ::= ( "export" "default"? )? "class" name classBody
38
+
39
+ | "export" "default" "class" classBody
40
+
41
+ ;
42
+
43
+
44
+ function ::= ( "export" "default"? )? "async"? "function" name functionBody
45
+
46
+ | "export" "default" "async"? "function" functionBody
47
+
48
+ ;
49
+
50
+
51
+ statementBody ::= "import" ( [string-literal]
52
+
53
+ | ( name "from" [string-literal] )
54
+
55
+ | ( "{" names "}" "from" [string-literal] )
56
+
57
+ | ( "*" "as" name "from" [string-literal] ) )
58
+
59
+ | "export" ( ( "{" names "}" ( "from" [string-literal] )? )
60
+
61
+ | ( "const" "{" fields "}" "=" expression )
62
+
63
+ | ( "{" "default" "}" "from" [string-literal] )
64
+
65
+ | ( "*" ( "as" name )? "from" [string-literal] ) )
66
+
67
+ | "export"? ( ( "var" var ( "," var )* )
68
+
69
+ | ( "let" let ( "," let )* )
70
+
71
+ | ( "const" const ( "," const )* ) )
72
+
73
+ | ( "export" "default" )? expression
74
+
75
+ | "return" ( ( "(" expression ")" ) | expression? )
76
+
77
+ | "throw" expression
78
+
79
+ | "delete" expression
80
+
81
+ | "break"
82
+
83
+ | "continue"
84
+
85
+ | "debugger"
86
+
87
+ ;
88
+
89
+
90
+ functionBody ::= "(" arguments? ")" "{" ( statement | function )* "}" ;
91
+
92
+
93
+ classBody ::= ( "extends" name )? "{" ( classConstructor | classMethod | classField )* "}" ;
94
+
95
+
96
+ classConstructor ::= "constructor" functionBody ;
97
+
98
+
99
+ classMethod ::= "static"? name functionBody ;
100
+
101
+
102
+ classField ::= "static"? name "=" expression... ";" ;
103
+
104
+
105
+ var ::= variable ( "=" expression )? | destructure "=" expression ;
106
+
107
+
108
+ let ::= variable ( "=" expression )? | destructure "=" expression ;
109
+
110
+
111
+ const ::= ( variable | destructure ) "=" expression ;
112
+
113
+
114
+ try ::= "try" "{" statement+ "}" ;
115
+
116
+
117
+ catch ::= "catch" "(" [identifier] ")" "{" statement+ "}" ;
118
+
119
+
120
+ finally ::= "finally" "{" statement+ "}" ;
121
+
122
+
123
+ case ::= "case" expression ":" statement ( "break" ";" )? ;
124
+
125
+
126
+ defaultCase ::= "default" ":" statement ( "break" ";" )? ;
127
+
128
+
129
+ initialiser ::= expression | "var" var ( "," var )* | "let" let ( "," let )* ;
130
+
131
+
132
+ destructure ::= "[" variable ( "=" expression )? ( "," variable ( "=" expression )? )* "]"
133
+
134
+ | "{" variable ( "=" expression )? ( "," variable ( "=" expression )? )* "}"
135
+
136
+ ;
137
+
138
+
139
+ expression ::= jsx
140
+
141
+ | json
142
+
143
+ | arrowFunction
144
+
145
+ | templateLiteral
146
+
147
+ | anonymousFunction
148
+
149
+ | "(" expression ")"
150
+
151
+ | "{" ( property ( "," property )* )? "}"
152
+
153
+ | "[" ( expression ( "," expression )* ","? )? "]"
154
+
155
+ | "typeof" ( expression | ( "(" expression ")") )
156
+
157
+ | "void" ( expression | ( "(" expression ")") )
158
+
159
+ | "new" name<NO_WHITESPACE>"(" expressions? ")"
160
+
161
+ | [operator]<NO_WHITESPACE>expression
162
+
163
+ | expression<NO_WHITESPACE>( ( "."<NO_WHITESPACE>name )
164
+
165
+ | ( "[" expressions "]" )
166
+
167
+ | ( "(" expressions? ")" )
168
+
169
+ | templateLiteral
170
+
171
+ | [operator] )
172
+
173
+ | expression ( ( [operator] expression )
174
+
175
+ | ( "?" expression ":" expression )
176
+
177
+ | ( "instanceof" expression )
178
+
179
+ | ( "in" expression ) )
180
+
181
+ | [number]
182
+
183
+ | variable
184
+
185
+ | primitive
186
+
187
+ | importMeta
188
+
189
+ | [string-literal]
190
+
191
+ | "super" | "this" | "true" | "false" | "null" | "undefined"
192
+
193
+ ;
194
+
195
+
196
+ jsx ::= jsxCompleteTag | jsxStartTag ( jsx | ( "{" expression? "}" ) | string )* jsxEndTag ;
197
+
198
+
199
+ jsxCompleteTag ::= "<"<NO_WHITESPACE>name jsxAttribute* "/>" ;
200
+
201
+
202
+ jsxStartTag ::= "<"<NO_WHITESPACE>name jsxAttribute* ">" ;
203
+
204
+
205
+ jsxEndTag ::= "</"<NO_WHITESPACE>name ">" ;
206
+
207
+
208
+ jsxAttribute ::= name ( <NO_WHITESPACE>"=" ( ( <NO_WHITESPACE>[string-literal] ) | ( <NO_WHITESPACE>"{" expression "}" ) ) )? ;
209
+
210
+
211
+ json ::= jsonArray | jsonObject ;
212
+
213
+
214
+ jsonArray ::= "[" ( jsonElement ( "," jsonElement )* )? "]" ;
215
+
216
+
217
+ jsonObject ::= "{" ( [string-literal] ":" jsonElement ( "," [string-literal] ":" jsonElement )* )? "}" ;
218
+
219
+
220
+ jsonElement ::= json | [string-literal] | [number] | "true" | "false" | "null" ;
221
+
222
+
223
+ arrowFunction ::= "(" arguments? ")" "=>" ( expression | ( "{" statement* "}" ) ) ;
224
+
225
+
226
+ templateLiteral ::= "\`" ( ( "\${" expression? "}" ) | string )* "\`" ;
227
+
228
+
229
+ string ::= ( [number] | [special] | [operator]| [keyword] | [identifier] | [string-literal] | [unassigned] )+ ;
230
+
231
+
232
+ property ::= ( ( ( name | [string-literal] ) ":" expression ) | variable ) ;
233
+
234
+
235
+ importMeta ::= "import"<NO_WHITESPACE>"."<NO_WHITESPACE>"meta" ;
236
+
237
+
238
+ expressions ::= expression ( "," expression )* ;
239
+
240
+
241
+ arguments ::= spreadArgument | ( argument ( "," argument )* ( "," spreadArgument )? ) ;
242
+
243
+
244
+ fields ::= name ( ":" name )? ( "," name ( ":" name )? )* ;
245
+
246
+
247
+ names ::= name ( "as" name )? ( "," name ( "as" name )? )* ;
248
+
249
+
250
+ spreadArgument ::= "..."<NO_WHITESPACE>variable ;
251
+
252
+
253
+ argument ::= variable ( "=" expression )? ;
254
+
255
+
256
+ variable ::= [identifier] ;
257
+
258
+
259
+ label ::= [identifier] ;
260
+
261
+
262
+ name ::= [identifier] ;
263
+
264
+
265
+ error. ::= . ;
266
+
267
+ `;
268
+
269
+ export default bnf;
270
+ */ , {
271
+ enumerable: true,
272
+ get: function() {
273
+ return _default;
274
+ }
275
+ });
276
+ const bnf = `
277
+
278
+
279
+ `;
280
+ const _default = bnf;
281
+
282
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wbHVnaW4vamF2YXNjcmlwdC9ibmYuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmNvbnN0IGJuZiA9IGBcblxuXG5gO1xuXG5leHBvcnQgZGVmYXVsdCBibmY7XG5cbi8qXG5jb25zdCBibmYgPSBgXG5cbiAgamF2YVNjcmlwdCAgICAgICAgOjo9ICBwcmVhbWJsZT8gKCBzdGF0ZW1lbnQgfCBmdW5jdGlvbiB8IGNsYXNzIHwgZXJyb3IgKSogO1xuXG5cbiAgcHJlYW1ibGUgICAgICAgICAgOjo9ICBcIlxcXFxcInVzZSBzdHJpY3RcXFxcXCJcIjxOT19XSElURVNQQUNFPlwiO1wiIDtcblxuXG4gIHN0YXRlbWVudCAgICAgICAgIDo6PSAgc3RhdGVtZW50Qm9keS4uLiBcIjtcIlxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgXCJ7XCIgKCBzdGF0ZW1lbnQgfCBmdW5jdGlvbiApKiBcIn1cIlxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgXCJpZlwiIFwiKFwiIGV4cHJlc3Npb24uLi4gXCIpXCIgc3RhdGVtZW50ICggXCJlbHNlXCIgc3RhdGVtZW50ICk/XG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcImZvclwiICggKCBcIihcIiBpbml0aWFsaXNlciAoIFwiO1wiIGV4cHJlc3Npb24gKT8gKCBcIjtcIiBleHByZXNzaW9uICk/IFwiKVwiIHN0YXRlbWVudCApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCIoXCIgdmFyaWFibGUgXCJpblwiIGV4cHJlc3Npb24uLi4gXCIpXCIgc3RhdGVtZW50IClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgKCBcImF3YWl0XCI/IFwiKFwiIHZhcmlhYmxlIFwib2ZcIiBleHByZXNzaW9uLi4uIFwiKVwiIHN0YXRlbWVudCApIClcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwiZG9cIiBzdGF0ZW1lbnQgXCJ3aGlsZVwiIFwiKFwiIGV4cHJlc3Npb24uLi4gXCIpXCJcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwid2hpbGVcIiBcIihcIiBleHByZXNzaW9uLi4uIFwiKVwiIHN0YXRlbWVudFxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgXCJzd2l0Y2hcIiBcIihcIiBleHByZXNzaW9uLi4uIFwiKVwiIFwie1wiIGNhc2UqIGRlZmF1bHRDYXNlPyBcIn1cIlxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgdHJ5ICggKCBjYXRjaCogZmluYWxseSApIHwgY2F0Y2grIClcblxuICAgICAgICAgICAgICAgICAgICAgIDtcblxuXG4gIGNsYXNzICAgICAgICAgICAgIDo6PSAgKCBcImV4cG9ydFwiIFwiZGVmYXVsdFwiPyApPyBcImNsYXNzXCIgbmFtZSBjbGFzc0JvZHlcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwiZXhwb3J0XCIgXCJkZWZhdWx0XCIgXCJjbGFzc1wiIGNsYXNzQm9keVxuXG4gICAgICAgICAgICAgICAgICAgICAgO1xuXG5cbiAgZnVuY3Rpb24gICAgICAgICAgOjo9ICAoIFwiZXhwb3J0XCIgXCJkZWZhdWx0XCI/ICk/IFwiYXN5bmNcIj8gXCJmdW5jdGlvblwiIG5hbWUgZnVuY3Rpb25Cb2R5XG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcImV4cG9ydFwiIFwiZGVmYXVsdFwiIFwiYXN5bmNcIj8gXCJmdW5jdGlvblwiIGZ1bmN0aW9uQm9keVxuXG4gICAgICAgICAgICAgICAgICAgICAgO1xuXG5cbiAgc3RhdGVtZW50Qm9keSAgICAgOjo9ICBcImltcG9ydFwiICggW3N0cmluZy1saXRlcmFsXVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAoIG5hbWUgXCJmcm9tXCIgW3N0cmluZy1saXRlcmFsXSApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCJ7XCIgbmFtZXMgXCJ9XCIgXCJmcm9tXCIgW3N0cmluZy1saXRlcmFsXSApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCIqXCIgXCJhc1wiIG5hbWUgXCJmcm9tXCIgW3N0cmluZy1saXRlcmFsXSApIClcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwiZXhwb3J0XCIgKCAoIFwie1wiIG5hbWVzIFwifVwiICggXCJmcm9tXCIgW3N0cmluZy1saXRlcmFsXSApPyApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCJjb25zdFwiIFwie1wiIGZpZWxkcyBcIn1cIiBcIj1cIiBleHByZXNzaW9uIClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgKCBcIntcIiBcImRlZmF1bHRcIiBcIn1cIiBcImZyb21cIiBbc3RyaW5nLWxpdGVyYWxdIClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgKCBcIipcIiAoIFwiYXNcIiBuYW1lICk/IFwiZnJvbVwiIFtzdHJpbmctbGl0ZXJhbF0gKSApXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcImV4cG9ydFwiPyAoICggXCJ2YXJcIiB2YXIgKCBcIixcIiB2YXIgKSogKVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgKCBcImxldFwiIGxldCAoIFwiLFwiIGxldCApKiApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAoIFwiY29uc3RcIiBjb25zdCAoIFwiLFwiIGNvbnN0ICkqICkgKVxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgKCBcImV4cG9ydFwiIFwiZGVmYXVsdFwiICk/IGV4cHJlc3Npb25cblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwicmV0dXJuXCIgKCAoIFwiKFwiIGV4cHJlc3Npb24gXCIpXCIgKSB8IGV4cHJlc3Npb24/IClcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwidGhyb3dcIiBleHByZXNzaW9uXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcImRlbGV0ZVwiIGV4cHJlc3Npb25cblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwiYnJlYWtcIlxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgXCJjb250aW51ZVwiXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcImRlYnVnZ2VyXCJcblxuICAgICAgICAgICAgICAgICAgICAgIDtcblxuXG4gIGZ1bmN0aW9uQm9keSAgICAgIDo6PSAgXCIoXCIgYXJndW1lbnRzPyBcIilcIiBcIntcIiAoIHN0YXRlbWVudCB8IGZ1bmN0aW9uICkqIFwifVwiIDtcblxuXG4gIGNsYXNzQm9keSAgICAgICAgIDo6PSAgKCBcImV4dGVuZHNcIiBuYW1lICk/IFwie1wiICggY2xhc3NDb25zdHJ1Y3RvciB8IGNsYXNzTWV0aG9kIHwgY2xhc3NGaWVsZC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VsdFwiIFwiOlwiIHN0YXRlbWVudCAoIFwiYnJlYWtcIiBcIjtcIiApPyA7XG5cblxuICBpbml0aWFsaXNlciAgICAgICA6Oj0gIGV4cHJlc3Npb24gfCBcInZhclwiIHZhciAoIFwiLFwiIHZhciApKiB8IFwibGV0XCIgbGV0ICggXCIsXCIgbGV0ICkqIDtcblxuXG4gIGRlc3RydWN0dXJlICAgICAgIDo6PSAgXCJbXCIgdmFyaWFibGUgKCBcIj1cIiBleHByZXNzaW9uICk/ICggXCIsXCIgdmFyaWFibGUgKCBcIj1cIiBleHByZXNzaW9uICk/ICkqIFwiXVwiXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcIntcIiB2YXJpYWJsZSAoIFwiPVwiIGV4cHJlc3Npb24gKT8gKCBcIixcIiB2YXJpYWJsZSAoIFwiPVwiIGV4cHJlc3Npb24gKT8gKSogXCJ9XCJcblxuICAgICAgICAgICAgICAgICAgICAgIDtcblxuXG4gIGV4cHJlc3Npb24gICAgICAgIDo6PSAganN4XG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBqc29uXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBhcnJvd0Z1bmN0aW9uXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICB0ZW1wbGF0ZUxpdGVyYWxcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIGFub255bW91c0Z1bmN0aW9uXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcIihcIiBleHByZXNzaW9uIFwiKVwiXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcIntcIiAoIHByb3BlcnR5ICggXCIsXCIgcHJvcGVydHkgKSogKT8gXCJ9XCJcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFwiW1wiICggZXhwcmVzc2lvbiAoIFwiLFwiIGV4cHJlc3Npb24gKSogXCIsXCI/ICk/IFwiXVwiXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcInR5cGVvZlwiICggZXhwcmVzc2lvbiB8ICggXCIoXCIgZXhwcmVzc2lvbiBcIilcIikgKVxuXG4gICAgICAgICAgICAgICAgICAgICAgfCAgXCJ2b2lkXCIgKCBleHByZXNzaW9uIHwgKCBcIihcIiBleHByZXNzaW9uIFwiKVwiKSApXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBcIm5ld1wiIG5hbWU8Tk9fV0hJVEVTUEFDRT5cIihcIiBleHByZXNzaW9ucz8gXCIpXCJcblxuICAgICAgICAgICAgICAgICAgICAgIHwgIFtvcGVyYXRvcl08Tk9fV0hJVEVTUEFDRT5leHByZXNzaW9uXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBleHByZXNzaW9uPE5PX1dISVRFU1BBQ0U+KCAoIFwiLlwiPE5PX1dISVRFU1BBQ0U+bmFtZSApXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAoIFwiW1wiIGV4cHJlc3Npb25zIFwiXVwiIClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCIoXCIgZXhwcmVzc2lvbnM/IFwiKVwiIClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHRlbXBsYXRlTGl0ZXJhbFxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgW29wZXJhdG9yXSApXG5cbiAgICAgICAgICAgICAgICAgICAgICB8ICBleHByZXNzaW9uICggKCBbb3BlcmF0b3JdIGV4cHJlc3Npb24gKVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICggXCI/XCIgZXhwcmVzc2lvbiBcIjpcIiBleHByZXNzaW9uIClcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAoIFwiaW5zdGFuY2VvZlwiIGV4cHJlc3Npb24gKVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQXlRQTs7O2VBM1FBOzs7QUFMQSxNQUFNQSxNQUFNLENBQUM7OztBQUdiLENBQUM7TUFFRCxXQUFlQSJ9
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _default;
9
+ }
10
+ });
11
+ const entries = [
12
+ {
13
+ "delimiter": "^(?:`|\\$\\{|<\\/|\\/>)"
14
+ },
15
+ {
16
+ "number": "^-?[1-9][0-9]*(\\.[0-9]+)?"
17
+ },
18
+ {
19
+ "special": "^(?:;|:|,|=>|\\?|\\{|\\}|\\[|\\]|\\(|\\)|\\\\`)"
20
+ },
21
+ {
22
+ "operator": "^(?:&=|>>>=|>>=|<<=|-=|\\.\\.\\.|\\.|\\*\\*=|\\*=|\\+=|\\/=|\\^=|\\|===|==|=|!==|%=|>=|<=|>>>|>>|<<|>|<|=|%|&&|&|~|!|--|-|\\^|\\|\\||\\||\\+\\+|\\*\\*|\\+|\\*|\\/)"
23
+ },
24
+ {
25
+ "keyword": "^(?:import|export|default|var|let|const|function|class|extends|constructor|static|break|return|continue|if|else|switch|case|throw|try|catch|finally|instanceof|typeof|async|await|do|while|for|in|of|as|new|this|super|delete|undefined|null|true|false|void|meta|debugger)\\b"
26
+ },
27
+ {
28
+ "identifier": "^[a-zA-Z_]+"
29
+ },
30
+ {
31
+ "unassigned": "^[^\\s]+"
32
+ }
33
+ ];
34
+ const _default = entries;
35
+
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wbHVnaW4vamF2YXNjcmlwdC9lbnRyaWVzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xyXG5cclxuY29uc3QgZW50cmllcyA9IFtcclxuICB7XHJcbiAgICBcImRlbGltaXRlclwiOiBcIl4oPzpgfFxcXFwkXFxcXHt8PFxcXFwvfFxcXFwvPilcIlxyXG4gIH0sXHJcbiAge1xyXG4gICAgXCJudW1iZXJcIjogXCJeLT9bMS05XVswLTldKihcXFxcLlswLTldKyk/XCJcclxuICB9LFxyXG4gIHtcclxuICAgIFwic3BlY2lhbFwiOiBcIl4oPzo7fDp8LHw9PnxcXFxcP3xcXFxce3xcXFxcfXxcXFxcW3xcXFxcXXxcXFxcKHxcXFxcKXxcXFxcXFxcXGApXCJcclxuICB9LFxyXG4gIHtcclxuICAgIFwib3BlcmF0b3JcIjogXCJeKD86Jj18Pj4+PXw+Pj18PDw9fC09fFxcXFwuXFxcXC5cXFxcLnxcXFxcLnxcXFxcKlxcXFwqPXxcXFxcKj18XFxcXCs9fFxcXFwvPXxcXFxcXj18XFxcXHw9PT18PT18PXwhPT18JT18Pj18PD18Pj4+fD4+fDw8fD58PHw9fCV8JiZ8Jnx+fCF8LS18LXxcXFxcXnxcXFxcfFxcXFx8fFxcXFx8fFxcXFwrXFxcXCt8XFxcXCpcXFxcKnxcXFxcK3xcXFxcKnxcXFxcLylcIlxyXG4gIH0sXHJcbiAge1xyXG4gICAgXCJrZXl3b3JkXCI6IFwiXig/OmltcG9ydHxleHBvcnR8ZGVmYXVsdHx2YXJ8bGV0fGNvbnN0fGZ1bmN0aW9ufGNsYXNzfGV4dGVuZHN8Y29uc3RydWN0b3J8c3RhdGljfGJyZWFrfHJldHVybnxjb250aW51ZXxpZnxlbHNlfHN3aXRjaHxjYXNlfHRocm93fHRyeXxjYXRjaHxmaW5hbGx5fGluc3RhbmNlb2Z8dHlwZW9mfGFzeW5jfGF3YWl0fGRvfHdoaWxlfGZvcnxpbnxvZnxhc3xuZXd8dGhpc3xzdXBlcnxkZWxldGV8dW5kZWZpbmVkfG51bGx8dHJ1ZXxmYWxzZXx2b2lkfG1ldGF8ZGVidWdnZXIpXFxcXGJcIlxyXG4gIH0sXHJcbiAge1xyXG4gICAgXCJpZGVudGlmaWVyXCI6IFwiXlthLXpBLVpfXStcIlxyXG4gIH0sXHJcbiAge1xyXG4gICAgXCJ1bmFzc2lnbmVkXCI6IFwiXlteXFxcXHNdK1wiXHJcbiAgfVxyXG5dO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgZW50cmllczsiXSwibmFtZXMiOlsiZW50cmllcyJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBMEJBOzs7ZUFBQTs7O0FBeEJBLE1BQU1BLFVBQVU7SUFDZDtRQUNFLGFBQWE7SUFDZjtJQUNBO1FBQ0UsVUFBVTtJQUNaO0lBQ0E7UUFDRSxXQUFXO0lBQ2I7SUFDQTtRQUNFLFlBQVk7SUFDZDtJQUNBO1FBQ0UsV0FBVztJQUNiO0lBQ0E7UUFDRSxjQUFjO0lBQ2hCO0lBQ0E7UUFDRSxjQUFjO0lBQ2hCO0NBQ0Q7TUFFRCxXQUFlQSJ9
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return JavaScriptPlugin;
9
+ }
10
+ });
11
+ const _plugin = /*#__PURE__*/ _interop_require_default(require("../../plugin"));
12
+ const _lexer = /*#__PURE__*/ _interop_require_default(require("../javascript/lexer"));
13
+ const _parser = /*#__PURE__*/ _interop_require_default(require("../javascript/parser"));
14
+ const _processor = /*#__PURE__*/ _interop_require_default(require("../javascript/processor"));
15
+ const _languages = require("../../languages");
16
+ function _interop_require_default(obj) {
17
+ return obj && obj.__esModule ? obj : {
18
+ default: obj
19
+ };
20
+ }
21
+ class JavaScriptPlugin extends _plugin.default {
22
+ static language = _languages.JAVASCRIPT_LANGUAGE;
23
+ static Lexer = _lexer.default;
24
+ static Parser = _parser.default;
25
+ static Processor = _processor.default;
26
+ static fromNothing() {
27
+ return _plugin.default.fromNothing(JavaScriptPlugin);
28
+ }
29
+ }
30
+
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wbHVnaW4vamF2YXNjcmlwdC9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IFBsdWdpbiBmcm9tIFwiLi4vLi4vcGx1Z2luXCI7XG5pbXBvcnQgSmF2YVNjcmlwdExleGVyIGZyb20gXCIuLi9qYXZhc2NyaXB0L2xleGVyXCI7XG5pbXBvcnQgSmF2YVNjcmlwdFBhcnNlciBmcm9tIFwiLi4vamF2YXNjcmlwdC9wYXJzZXJcIjtcbmltcG9ydCBKYXZhU2NyaXB0UHJvY2Vzc29yIGZyb20gXCIuLi9qYXZhc2NyaXB0L3Byb2Nlc3NvclwiO1xuXG5pbXBvcnQgeyBKQVZBU0NSSVBUX0xBTkdVQUdFIH0gZnJvbSBcIi4uLy4uL2xhbmd1YWdlc1wiXG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEphdmFTY3JpcHRQbHVnaW4gZXh0ZW5kcyBQbHVnaW4ge1xuICBzdGF0aWMgbGFuZ3VhZ2UgPSBKQVZBU0NSSVBUX0xBTkdVQUdFO1xuXG4gIHN0YXRpYyBMZXhlciA9IEphdmF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