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 TypeFieldDescriptionorg.antlr.runtime.RecognitionException
org.antlr.runtime.Token
Most of the time, we'll have a token and so this will be set. -
Constructor Summary
ConstructorsConstructorDescriptionGrammarSyntaxMessage
(int msgID, Grammar grammar, org.antlr.runtime.Token offendingToken, Object arg, org.antlr.runtime.RecognitionException exception) GrammarSyntaxMessage
(int msgID, Grammar grammar, org.antlr.runtime.Token offendingToken, org.antlr.runtime.RecognitionException exception) -
Method Summary
Methods inherited from class org.antlr.tool.Message
getLocationTemplate, getMessageTemplate, setColumn, setLine, setMessageID, toString
-
Field Details
-
g
-
offendingToken
public org.antlr.runtime.Token offendingTokenMost of the time, we'll have a token and so this will be set. -
exception
public org.antlr.runtime.RecognitionException exception
-
-
Constructor Details
-
GrammarSyntaxMessage
public GrammarSyntaxMessage(int msgID, Grammar grammar, org.antlr.runtime.Token offendingToken, org.antlr.runtime.RecognitionException exception) -
GrammarSyntaxMessage
-
-
Method Details