org.antlr.tool
Class GrammarSyntaxMessage
java.lang.Object
org.antlr.tool.Message
org.antlr.tool.GrammarSyntaxMessage
public class GrammarSyntaxMessage
- extends Message
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"
Fields inherited from class org.antlr.tool.Message |
arg, arg2, column, e, file, line, locationST, messageFormatST, msgID, msgST, reportST |
Constructor Summary |
GrammarSyntaxMessage(int msgID,
Grammar grammar,
antlr.Token offendingToken,
java.lang.Object arg,
antlr.RecognitionException exception)
|
GrammarSyntaxMessage(int msgID,
Grammar grammar,
antlr.Token offendingToken,
antlr.RecognitionException exception)
|
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
g
public Grammar g
offendingToken
public antlr.Token offendingToken
- Most of the time, we'll have a token and so this will be set.
exception
public antlr.RecognitionException exception
GrammarSyntaxMessage
public GrammarSyntaxMessage(int msgID,
Grammar grammar,
antlr.Token offendingToken,
antlr.RecognitionException exception)
GrammarSyntaxMessage
public GrammarSyntaxMessage(int msgID,
Grammar grammar,
antlr.Token offendingToken,
java.lang.Object arg,
antlr.RecognitionException exception)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object