forked from jasder/antlr
comment out attributes for lexical rule references.
This commit is contained in:
parent
4abedb08dd
commit
2241b3ea51
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue