Package | Description |
---|---|
org.antlr.v4.parse | |
org.antlr.v4.semantics | |
org.antlr.v4.tool |
Modifier and Type | Method and Description |
---|---|
void |
ANTLRParser.grammarError(ErrorType etype,
org.antlr.runtime.Token token,
Object... args) |
void |
ANTLRLexer.grammarError(ErrorType etype,
org.antlr.runtime.Token token,
Object... args) |
void |
ToolANTLRLexer.grammarError(ErrorType etype,
org.antlr.runtime.Token token,
Object... args) |
void |
ToolANTLRParser.grammarError(ErrorType etype,
org.antlr.runtime.Token token,
Object... args) |
Modifier and Type | Method and Description |
---|---|
protected void |
SymbolChecks.checkDeclarationRuleConflicts(Rule r,
AttributeDict attributes,
Set<String> ruleNames,
ErrorType errorType) |
protected void |
SymbolChecks.checkLocalConflictingDeclarations(Rule r,
AttributeDict attributes,
AttributeDict referenceAttributes,
ErrorType errorType) |
Modifier and Type | Field and Description |
---|---|
Set<ErrorType> |
ErrorManager.errorTypes
All errors that have been generated
|
Modifier and Type | Method and Description |
---|---|
ErrorType |
ANTLRMessage.getErrorType() |
static ErrorType |
ErrorType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
ErrorType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorManager.emit(ErrorType etype,
ANTLRMessage msg) |
void |
ErrorManager.grammarError(ErrorType etype,
String fileName,
org.antlr.runtime.Token token,
Object... args) |
void |
ErrorManager.panic(ErrorType errorType,
Object... args) |
void |
ErrorManager.syntaxError(ErrorType etype,
String fileName,
org.antlr.runtime.Token token,
org.antlr.runtime.RecognitionException antlrException,
Object... args) |
void |
ErrorManager.toolError(ErrorType errorType,
Object... args)
Raise a predefined message with some number of parameters for the StringTemplate but for which there
is no location information possible.
|
void |
ErrorManager.toolError(ErrorType errorType,
Throwable e,
Object... args) |
Constructor and Description |
---|
ANTLRMessage(ErrorType errorType) |
ANTLRMessage(ErrorType errorType,
Throwable e,
org.antlr.runtime.Token offendingToken,
Object... args) |
ANTLRMessage(ErrorType errorType,
org.antlr.runtime.Token offendingToken,
Object... args) |
GrammarSemanticsMessage(ErrorType etype,
String fileName,
org.antlr.runtime.Token offendingToken,
Object... args) |
GrammarSyntaxMessage(ErrorType etype,
String fileName,
org.antlr.runtime.Token offendingToken,
org.antlr.runtime.RecognitionException antlrException,
Object... args) |
ToolMessage(ErrorType errorType) |
ToolMessage(ErrorType errorType,
Object... args) |
ToolMessage(ErrorType errorType,
Throwable e,
Object... args) |
Copyright © 1992–2020 ANTLR. All rights reserved.