From 475215aa523d9fcc0c62b1eda8a4f25155d0b086 Mon Sep 17 00:00:00 2001 From: David Majda Date: Fri, 11 Dec 2015 14:07:44 +0100 Subject: [PATCH] Expose the AST node visitor builder via PEG.compiler.visitor This is useful mainly for plugins which manipulate the AST. --- lib/compiler.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/compiler.js b/lib/compiler.js index 4e6934f..e1e1642 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -4,6 +4,12 @@ var arrays = require("./utils/arrays"), objects = require("./utils/objects"); var compiler = { + /* + * AST node visitor builder. Useful mainly for plugins which manipulate the + * AST. + */ + visitor: require("./compiler/visitor"), + /* * Compiler passes. *