From 3e054df98b9e8f0e154e0a1b886c7947e5c00e88 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sun, 23 Mar 2014 16:31:14 -0500 Subject: [PATCH] Do not process grammars following an error during parsing (fixes #507) --- tool/src/org/antlr/v4/Tool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/src/org/antlr/v4/Tool.java b/tool/src/org/antlr/v4/Tool.java index cf70d0937..3ef1f3a3b 100644 --- a/tool/src/org/antlr/v4/Tool.java +++ b/tool/src/org/antlr/v4/Tool.java @@ -339,7 +339,7 @@ public class Tool { System.out.println(dep.getDependencies().render()); } - else { + else if (errMgr.getNumErrors() == 0) { process(g, true); } }