Package org.antlr.tool
Class GrammarSyntaxMessage
java.lang.Object
org.antlr.tool.Message
org.antlr.tool.GrammarSyntaxMessage
A problem with the syntax of your antlr grammar such as
"The '{' came as a complete surprise to me at this point in your program"
-
Field Summary
FieldsModifier and TypeFieldDescriptionMost of the time, we'll have a token and so this will be set. -
Constructor Summary
ConstructorsConstructorDescriptionGrammarSyntaxMessage
(int msgID, Grammar grammar, Token offendingToken, Object arg, RecognitionException exception) GrammarSyntaxMessage
(int msgID, Grammar grammar, Token offendingToken, RecognitionException exception) -
Method Summary
Methods inherited from class org.antlr.tool.Message
getLocationTemplate, getMessageTemplate, setColumn, setLine, setMessageID, toString
-
Field Details
-
g
-
offendingToken
Most of the time, we'll have a token and so this will be set. -
exception
-
-
Constructor Details
-
GrammarSyntaxMessage
public GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, RecognitionException exception) -
GrammarSyntaxMessage
public GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, Object arg, RecognitionException exception)
-
-
Method Details