mediawiki-extensions-Visual.../modules/parser/package.json

31 lines
639 B
JSON
Raw Normal View History

{
"name": "mediawiki-parsoid",
"description": "Mediawiki parser for the VisualEditor.",
"version": "0.0.1",
"dependencies": {
"events": "0.x.x",
"jquery": "1.x.x",
"request": "2.x.x",
"querystring": "0.x.x",
"path": "0.x.x",
"jshashes": "0.x.x",
"optimist": "0.x.x",
"assert": "0.x.x",
"jsdom": "0.x.x",
"pegjs": "0.x.x",
Big token transform framework overhaul part 2 * Tokens are now immutable. The progress of transformations is tracked on chunks instead of tokens. Tokenizer output is cached and can be directly returned without a need for cloning. Transforms are required to clone or newly create tokens they are modifying. * Expansions per chunk are now shared between equivalent frames via a cache stored on the chunk itself. Equivalence of frames is not yet ideal though, as right now a hash tree of *unexpanded* arguments is used. This should be switched to a hash of the fully expanded local parameters instead. * There is now a vastly improved maybeSyncReturn wrapper for async transforms that either forwards processing to the iterative transformTokens if the current transform is still ongoing, or manages a recursive transformation if needed. * Parameters for parser functions are now wrapped in abstract Params and ParserValue objects, which support some handy on-demand *value* expansions. Keys are always expanded. Parser functions are converted to use these interfaces, and now properly expand their values in the correct frame. Making this expansion lazier is certainly possible, but would complicate transformTokens and other token-handling machinery. Need to investigate if it would really be worth it. Dead branch elimination is certainly a bigger win overall. * Complex recursive asynchronous expansions should now be closer to correct for both the iterative (transformTokens) and recursive (maybeSyncReturn after transformTokens has returned) code paths. * Performance degraded slightly. There are no micro-optimizations done yet and the shared expansion cache still has a low hit rate. The progress tracking on chunks is not yet perfect, so there are likely a lot of unneeded re-expansions that can be easily eliminated. There is also more debug tracing right now. Obama currently expands in 54 seconds on my laptop. Change-Id: I4a603f3d3c70ca657ebda9fbb8570269f943d6b6
2012-05-10 08:04:24 +00:00
"lru-cache": "1.x.x",
"async": "0.x.x",
"express": "2.5.x"
},
"devDependencies": {
"colors": "0.x.x",
"diff": "1.x.x",
"html5": "0.x.x"
},
"main": "mediawiki.parser.js",
"scripts": {
"pretest": "node test/fetch-parserTests.txt.js",
"test": "node test/parserTests.js"
}
}