yapp 2.2.17 → 2.2.22
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.
- package/README.md +12 -11
- package/example.js +146 -134
- package/lib/parser/javascript.js +2 -2
- package/lib/processor/javascript.js +5 -5
- package/lib/richTextarea.js +3 -2
- package/lib/syntax.js +4 -4
- package/lib/yapp.js +5 -4
- package/package.json +1 -1
- package/src/parser/javascript.js +3 -3
- package/src/richTextarea.js +3 -1
- package/src/syntax.js +4 -5
- package/src/yapp.js +6 -4
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ Yet Another Pretty Printer.
|
|
|
12
12
|
- [Styling Yapp](#styling-yapp)
|
|
13
13
|
- [Plugins](#plugins)
|
|
14
14
|
- [Building](#building)
|
|
15
|
+
- [Contributions](#contributions)
|
|
15
16
|
- [Acknowledgements](#acknowledgements)
|
|
16
17
|
- [Contact](#contact)
|
|
17
18
|
|
|
@@ -326,6 +327,17 @@ Once these files are in place, the examples should build again.
|
|
|
326
327
|
|
|
327
328
|
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.
|
|
328
329
|
|
|
330
|
+
## Building
|
|
331
|
+
|
|
332
|
+
Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
|
|
333
|
+
|
|
334
|
+
npm run build-debug
|
|
335
|
+
npm run watch-debug
|
|
336
|
+
|
|
337
|
+
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.
|
|
338
|
+
|
|
339
|
+
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.
|
|
340
|
+
|
|
329
341
|
## Contributions
|
|
330
342
|
|
|
331
343
|
All development is best done in the context of the examples. There are three main areas that would benefit from contributions.
|
|
@@ -341,17 +353,6 @@ All development is best done in the context of the examples. There are three mai
|
|
|
341
353
|
|
|
342
354
|
Contributions are best made in the form of pull requests.
|
|
343
355
|
|
|
344
|
-
## Building
|
|
345
|
-
|
|
346
|
-
Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:
|
|
347
|
-
|
|
348
|
-
npm run build-debug
|
|
349
|
-
npm run watch-debug
|
|
350
|
-
|
|
351
|
-
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.
|
|
352
|
-
|
|
353
|
-
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.
|
|
354
|
-
|
|
355
356
|
## Acknowledgements
|
|
356
357
|
|
|
357
358
|
* The [Statements and declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements) and [Expressions and operators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators) MDN articles were invaluable when writing the JavaScript grammar.
|