From 43da92e1172cbe147039becb0354d6af12c1cac3 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Tue, 31 Jul 2012 13:22:38 -0500 Subject: [PATCH] Remove old tree parser code --- tool/src/org/antlr/v4/automata/ATNFactory.java | 3 --- tool/src/org/antlr/v4/automata/ParserATNFactory.java | 5 ----- 2 files changed, 8 deletions(-) diff --git a/tool/src/org/antlr/v4/automata/ATNFactory.java b/tool/src/org/antlr/v4/automata/ATNFactory.java index 3fab41715..073bb28b4 100644 --- a/tool/src/org/antlr/v4/automata/ATNFactory.java +++ b/tool/src/org/antlr/v4/automata/ATNFactory.java @@ -74,9 +74,6 @@ public interface ATNFactory { Handle charSetLiteral(GrammarAST charSetAST); - - Handle tree(GrammarAST node, List els); - Handle range(GrammarAST a, GrammarAST b); /** For a non-lexer, just build a simple token reference atom. diff --git a/tool/src/org/antlr/v4/automata/ParserATNFactory.java b/tool/src/org/antlr/v4/automata/ParserATNFactory.java index efc4921da..f5bccd436 100644 --- a/tool/src/org/antlr/v4/automata/ParserATNFactory.java +++ b/tool/src/org/antlr/v4/automata/ParserATNFactory.java @@ -193,11 +193,6 @@ public class ParserATNFactory implements ATNFactory { return new Handle(left, right); } - @Override - public Handle tree(GrammarAST node, List els) { - throw new UnsupportedOperationException("^(...) not allowed in non-tree grammar"); - } - /** Not valid for non-lexers */ @Override public Handle range(GrammarAST a, GrammarAST b) {