You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Majda 76f5c88073 Plugin API: Implement the |plugins| option for |PEG.buildParser|
The |plugins| option allows users to use plugins that change how PEG.js
operates.

A plugin is any JavaScript object with a |use| method. After the user
calls |PEG.buildParser|, this method is called for each plugin with the
following two parameters:

  * PEG.js config that describes used grammar parser and compiler
    passes used to generate the parser

  * options passed by user to |PEG.buildParser|

The plugin is expected to change the config as needed, possibly based on
the options passed by user. It can e.g. change the used grammar parser,
change the compiler passes (including adding its own), etc. This way it
can extend PEG.js in a flexible way.

Implements part of GH-106.
12 years ago
..
compiler Merge lib/compiler/passes.js into lib/compiler.js 12 years ago
compiler.js Plugin API: Implement the |passes| parameter for |PEG.compiler.compile| 12 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js s/subclass/peg$subclass/ 12 years ago
peg.js Plugin API: Implement the |plugins| option for |PEG.buildParser| 12 years ago
utils.js Test property presence in |utils.defaults| using |in| 12 years ago