forked from jasder/antlr
rm err 'no wildcard in parser'
This commit is contained in:
parent
0c3ce2860e
commit
f8ec86edd7
|
@ -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<GrammarAST> modifiers,
|
||||
|
|
|
@ -150,7 +150,7 @@ public enum ErrorType {
|
|||
IMPLICIT_STRING_DEFINITION(126, "cannot create implicit token for string literal <arg> in non-combined grammar", ErrorSeverity.ERROR),
|
||||
// ALIAS_REASSIGNMENT(127, "token literal <arg> aliased to new token name <arg2>", ErrorSeverity.WARNING),
|
||||
ATTRIBUTE_IN_LEXER_ACTION(128, "attribute references not allowed in lexer actions: $<arg>", 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 <arg> assigned to a block which is not a set", ErrorSeverity.ERROR),
|
||||
EXPECTED_NON_GREEDY_WILDCARD_BLOCK(131, "greedy block ()<arg> contains wildcard; the non-greedy syntax ()<arg>? may be preferred", ErrorSeverity.WARNING),
|
||||
|
||||
|
|
Loading…
Reference in New Issue