Remove usless refrences to peg

This commit is contained in:
Futago-za Ryuu 2018-01-28 02:18:02 +00:00
parent 269b36b9db
commit 8d711627c1

View file

@ -31,8 +31,8 @@ const peg = {
const plugins = "plugins" in options ? options.plugins : []; const plugins = "plugins" in options ? options.plugins : [];
const config = { const config = {
parser: peg.parser, parser: parser,
passes: util.convertPasses( peg.compiler.passes ) passes: util.convertPasses( compiler.passes )
}; };
plugins.forEach( p => { plugins.forEach( p => {
@ -41,7 +41,7 @@ const peg = {
} ); } );
return peg.compiler.compile( return compiler.compile(
config.parser.parse( grammar ), config.parser.parse( grammar ),
config.passes, config.passes,
options options