Index: trunk/extensions/VisualEditor/modules/parser/parse.js |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | /** |
3 | | - * Command line wikidom parse utility. |
| 3 | + * Command line parse utility. |
4 | 4 | * Read from STDIN, write to STDOUT. |
5 | 5 | * |
6 | 6 | * @author Neil Kandalgaonkar <neilk@wikimedia.org> |
Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.parser.js |
— | — | @@ -1,6 +1,12 @@ |
2 | 2 | /** |
| 3 | + * This module assembles parser pipelines from parser stages with |
| 4 | + * asynchronous communnication between stages based on events. Apart from the |
| 5 | + * default pipeline which converts WikiText to HTML DOM, it also provides |
| 6 | + * sub-pipelines for the processing of template transclusions. |
3 | 7 | * |
4 | | - * Simple parser class. Should have lots of options for observing parse stages (or, use events). |
| 8 | + * See http://www.mediawiki.org/wiki/Parsoid and |
| 9 | + * http://www.mediawiki.org/wiki/Parsoid/Token_stream_transformations |
| 10 | + * for illustrations of the pipeline architecture. |
5 | 11 | * |
6 | 12 | * @author Gabriel Wicke <gwicke@wikimedia.org> |
7 | 13 | * @author Neil Kandalgaonkar <neilk@wikimedia.org> |