How to use the wikipeg.parser function in wikipeg

To help you get started, we’ve selected a few wikipeg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikimedia / parsoid / lib / wt2html / tokenizer.js View on Github external
PegTokenizer.prototype.parseTokenizer = function(compileOpts = {}) {
	var src = this.readSource(compileOpts);
	return PEG.parser.parse(src);
};

wikipeg

Parser generator for JavaScript and PHP

MIT
Latest version published 5 months ago

Package Health Score

63 / 100
Full package analysis

Similar packages