From 66f179823da0f8507296dd5eeb7afcadc810bdaa Mon Sep 17 00:00:00 2001 From: parrt Date: Fri, 12 Feb 2010 16:13:04 -0800 Subject: [PATCH] rename [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6689] --- tool/src/org/antlr/v4/tool/ActionAST.java | 2 +- tool/src/org/antlr/v4/tool/Alternative.java | 4 ++-- .../v4/tool/{SymbolSpace.java => AttributeResolver.java} | 4 ++-- tool/src/org/antlr/v4/tool/Grammar.java | 4 ++-- tool/src/org/antlr/v4/tool/Rule.java | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) rename tool/src/org/antlr/v4/tool/{SymbolSpace.java => AttributeResolver.java} (85%) diff --git a/tool/src/org/antlr/v4/tool/ActionAST.java b/tool/src/org/antlr/v4/tool/ActionAST.java index f1c21fb81..a166be304 100644 --- a/tool/src/org/antlr/v4/tool/ActionAST.java +++ b/tool/src/org/antlr/v4/tool/ActionAST.java @@ -4,7 +4,7 @@ import org.antlr.runtime.Token; public class ActionAST extends GrammarAST { // Alt, rule, grammar space - public SymbolSpace space; + public AttributeResolver space; public ActionAST(Token t) { super(t); } public ActionAST(int type) { super(type); } public ActionAST(int type, Token t) { super(type, t); } diff --git a/tool/src/org/antlr/v4/tool/Alternative.java b/tool/src/org/antlr/v4/tool/Alternative.java index a25cbe2e5..6cf61224f 100644 --- a/tool/src/org/antlr/v4/tool/Alternative.java +++ b/tool/src/org/antlr/v4/tool/Alternative.java @@ -9,7 +9,7 @@ import java.util.List; /** Record use/def information about an outermost alternative in a subrule * or rule of a grammar. */ -public class Alternative implements SymbolSpace { +public class Alternative implements AttributeResolver { Rule rule; // token IDs, string literals in this alt @@ -33,7 +33,7 @@ public class Alternative implements SymbolSpace { public Alternative(Rule r) { this.rule = r; } - public SymbolSpace getParent() { + public AttributeResolver getParent() { return null; } diff --git a/tool/src/org/antlr/v4/tool/SymbolSpace.java b/tool/src/org/antlr/v4/tool/AttributeResolver.java similarity index 85% rename from tool/src/org/antlr/v4/tool/SymbolSpace.java rename to tool/src/org/antlr/v4/tool/AttributeResolver.java index 9f71e5cde..fafb8ef91 100644 --- a/tool/src/org/antlr/v4/tool/SymbolSpace.java +++ b/tool/src/org/antlr/v4/tool/AttributeResolver.java @@ -5,8 +5,8 @@ package org.antlr.v4.tool; * then ask space to resolve. If not found in one space we look * at parent. Alt's parent is rule; rule's parent is grammar. */ -public interface SymbolSpace { - public SymbolSpace getParent(); +public interface AttributeResolver { + public AttributeResolver getParent(); public boolean resolves(String x, ActionAST node); public boolean resolves(String x, String y, ActionAST node); public boolean resolveToRuleRef(String x, ActionAST node); diff --git a/tool/src/org/antlr/v4/tool/Grammar.java b/tool/src/org/antlr/v4/tool/Grammar.java index e79140f72..ef9c56650 100644 --- a/tool/src/org/antlr/v4/tool/Grammar.java +++ b/tool/src/org/antlr/v4/tool/Grammar.java @@ -11,7 +11,7 @@ import org.antlr.v4.parse.GrammarASTAdaptor; import java.util.*; -public class Grammar implements SymbolSpace { +public class Grammar implements AttributeResolver { public static final Set doNotCopyOptionsToLexer = new HashSet() { { @@ -210,7 +210,7 @@ public class Grammar implements SymbolSpace { return null; } - public SymbolSpace getParent() { return null; } + public AttributeResolver getParent() { return null; } public boolean resolves(String x, ActionAST node) { return false; diff --git a/tool/src/org/antlr/v4/tool/Rule.java b/tool/src/org/antlr/v4/tool/Rule.java index 2cc9d611e..81de37a11 100644 --- a/tool/src/org/antlr/v4/tool/Rule.java +++ b/tool/src/org/antlr/v4/tool/Rule.java @@ -5,7 +5,7 @@ import org.stringtemplate.v4.misc.MultiMap; import java.util.*; -public class Rule implements SymbolSpace { +public class Rule implements AttributeResolver { /** Rule refs have a predefined set of attributes as well as * the return values and args. */ @@ -79,7 +79,7 @@ public class Rule implements SymbolSpace { for (int i=1; i<=numberOfAlts; i++) alt[i] = new Alternative(this); } - public SymbolSpace getParent() { return g; } + public AttributeResolver getParent() { return g; } /** Is isolated x an arg, retval, predefined prop? */ public boolean resolves(String x, ActionAST node) {