From 2daa261772870bceb3cf7a616469659da8719948 Mon Sep 17 00:00:00 2001 From: Joseph Smith Date: Thu, 26 Apr 2018 13:06:04 -0500 Subject: [PATCH] Don't generate interpreter data files if gencode is false --- 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 5bf4eaaf0..d2c95f525 100644 --- a/tool/src/org/antlr/v4/Tool.java +++ b/tool/src/org/antlr/v4/Tool.java @@ -397,7 +397,7 @@ public class Tool { if ( generate_ATN_dot ) generateATNs(g); - if ( g.tool.getNumErrors()==0 ) generateInterpreterData(g); + if (gencode && g.tool.getNumErrors()==0 ) generateInterpreterData(g); // PERFORM GRAMMAR ANALYSIS ON ATN: BUILD DECISION DFAs AnalysisPipeline anal = new AnalysisPipeline(g);