diff --git a/tool/src/org/antlr/v4/semantics/BasicSemanticChecks.java b/tool/src/org/antlr/v4/semantics/BasicSemanticChecks.java index 1660de6b6..6a7641bf8 100644 --- a/tool/src/org/antlr/v4/semantics/BasicSemanticChecks.java +++ b/tool/src/org/antlr/v4/semantics/BasicSemanticChecks.java @@ -143,14 +143,6 @@ public class BasicSemanticChecks extends GrammarTreeVisitor { } } - @Override - public void wildcardRef(GrammarAST ref) { - if ( !g.isLexer() ) { - g.tool.errMgr.grammarError(ErrorType.WILDCARD_IN_PARSER, g.fileName, - ref.getToken(), ref.getText(), g); - } - } - @Override public void discoverRule(RuleAST rule, GrammarAST ID, List modifiers, diff --git a/tool/src/org/antlr/v4/tool/ErrorType.java b/tool/src/org/antlr/v4/tool/ErrorType.java index a4df1f238..2988023a4 100644 --- a/tool/src/org/antlr/v4/tool/ErrorType.java +++ b/tool/src/org/antlr/v4/tool/ErrorType.java @@ -150,7 +150,7 @@ public enum ErrorType { IMPLICIT_STRING_DEFINITION(126, "cannot create implicit token for string literal in non-combined grammar", ErrorSeverity.ERROR), // ALIAS_REASSIGNMENT(127, "token literal aliased to new token name ", ErrorSeverity.WARNING), ATTRIBUTE_IN_LEXER_ACTION(128, "attribute references not allowed in lexer actions: $", ErrorSeverity.ERROR), - WILDCARD_IN_PARSER(129, "wildcard '.' not allowed in parsers", ErrorSeverity.ERROR), +// WILDCARD_IN_PARSER(129, "wildcard '.' not allowed in parsers", ErrorSeverity.ERROR), LABEL_BLOCK_NOT_A_SET(130, "label assigned to a block which is not a set", ErrorSeverity.ERROR), EXPECTED_NON_GREEDY_WILDCARD_BLOCK(131, "greedy block () contains wildcard; the non-greedy syntax ()? may be preferred", ErrorSeverity.WARNING),