comment out attributes for lexical rule references.

This commit is contained in:
Terence Parr 2012-09-22 13:07:12 -07:00
parent 4abedb08dd
commit 2241b3ea51
2 changed files with 10 additions and 10 deletions

View File

@ -107,9 +107,9 @@ public class Grammar implements AttributeResolver {
public static Map<String, AttributeDict> grammarAndLabelRefTypeToScope =
new HashMap<String, AttributeDict>() {{
put("lexer:RULE_LABEL", Rule.predefinedLexerRulePropertiesDict);
put("lexer:LEXER_STRING_LABEL", Rule.predefinedLexerRulePropertiesDict);
put("lexer:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
// put("lexer:RULE_LABEL", Rule.predefinedLexerRulePropertiesDict);
// put("lexer:LEXER_STRING_LABEL", Rule.predefinedLexerRulePropertiesDict);
// put("lexer:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
put("parser:RULE_LABEL", Rule.predefinedRulePropertiesDict);
put("parser:TOKEN_LABEL", AttributeDict.predefinedTokenDict);
put("combined:RULE_LABEL", Rule.predefinedRulePropertiesDict);

View File

@ -58,13 +58,13 @@ public class Rule implements AttributeResolver {
add(new Attribute("ctx"));
}};
public static AttributeDict predefinedLexerRulePropertiesDict =
new AttributeDict(AttributeDict.DictType.PREDEFINED_LEXER_RULE) {{
add(new Attribute("text"));
add(new Attribute("type"));
add(new Attribute("channel"));
add(new Attribute("mode"));
}};
// public static AttributeDict predefinedLexerRulePropertiesDict =
// new AttributeDict(AttributeDict.DictType.PREDEFINED_LEXER_RULE) {{
// add(new Attribute("text"));
// add(new Attribute("type"));
// add(new Attribute("channel"));
// add(new Attribute("mode"));
// }};
public static Set<String> validLexerCommands = new HashSet<String>() {{
// CALLS