forked from jasder/antlr
more cleanup
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9882]
This commit is contained in:
parent
fd0d280e6a
commit
449c845dc0
|
@ -71,9 +71,6 @@ public class Grammar implements AttributeResolver {
|
|||
put("lexer:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
|
||||
put("parser:RULE_LABEL", Rule.predefinedRulePropertiesDict);
|
||||
put("parser:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
|
||||
put("tree:RULE_LABEL", Rule.predefinedTreeRulePropertiesDict);
|
||||
put("tree:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
|
||||
put("tree:WILDCARD_TREE_LABEL", AttributeDict.predefinedTokenDict);
|
||||
put("combined:RULE_LABEL", Rule.predefinedRulePropertiesDict);
|
||||
put("combined:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
|
||||
}};
|
||||
|
|
|
@ -53,15 +53,6 @@ public class Rule implements AttributeResolver {
|
|||
add(new Attribute("ctx"));
|
||||
}};
|
||||
|
||||
public static AttributeDict predefinedTreeRulePropertiesDict =
|
||||
new AttributeDict(AttributeDict.DictType.PREDEFINED_TREE_RULE) {{
|
||||
add(new Attribute("text"));
|
||||
add(new Attribute("start")); // note: no stop; not meaningful
|
||||
add(new Attribute("tree"));
|
||||
add(new Attribute("st"));
|
||||
add(new Attribute("ctx"));
|
||||
}};
|
||||
|
||||
public static AttributeDict predefinedLexerRulePropertiesDict =
|
||||
new AttributeDict(AttributeDict.DictType.PREDEFINED_LEXER_RULE) {{
|
||||
add(new Attribute("text"));
|
||||
|
|
Loading…
Reference in New Issue