From 7192cc9a682befcd141712a4a9d02afe36d3e08b Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Sat, 2 Jun 2012 11:44:01 -0700 Subject: [PATCH] rm deadcode --- .../antlr/v4/semantics/SemanticPipeline.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/tool/src/org/antlr/v4/semantics/SemanticPipeline.java b/tool/src/org/antlr/v4/semantics/SemanticPipeline.java index 740d11a3f..652e8c7a5 100644 --- a/tool/src/org/antlr/v4/semantics/SemanticPipeline.java +++ b/tool/src/org/antlr/v4/semantics/SemanticPipeline.java @@ -32,10 +32,13 @@ package org.antlr.v4.semantics; import org.antlr.v4.analysis.LeftRecursiveRuleTransformer; import org.antlr.v4.parse.ANTLRParser; import org.antlr.v4.runtime.Token; -import org.antlr.v4.tool.*; +import org.antlr.v4.tool.ErrorType; +import org.antlr.v4.tool.Grammar; +import org.antlr.v4.tool.Rule; import org.antlr.v4.tool.ast.GrammarAST; -import java.util.*; +import java.util.List; +import java.util.Map; /** Do as much semantic checking as we can and fill in grammar * with rules, actions, and token definitions. @@ -180,16 +183,6 @@ public class SemanticPipeline { } } - // DEFINE TOKEN TYPES FOR X : 'x' ; RULES - /* done by previous import - Map litAliases = Grammar.getStringLiteralAliasesFromLexerRules(g.ast); - if ( litAliases!=null ) { - for (String lit : litAliases.keySet()) { - G.defineTokenAlias(litAliases.get(lit), lit); - } - } - */ - // DEFINE TOKEN TYPES FOR TOKEN REFS LIKE ID, INT for (GrammarAST idAST : tokenIDs) { if (g.getTokenType(idAST.getText()) == Token.INVALID_TYPE) {