Merge pull request #1060 from ericvergnaud/missing-js-visitor-methods

fix #1058
This commit is contained in:
Terence Parr 2016-01-28 10:51:21 -08:00
commit 49cc92aa35
1 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,13 @@ ParseTreeVisitor.prototype.visit = function(ctx) {
}
};
ParseTreeVisitor.prototype.visitTerminal = function(node) {
};
ParseTreeVisitor.prototype.visitErrorNode = function(node) {
};
var visitAtom = function(visitor, ctx) {
if (ctx.parser === undefined) { //is terminal
return;