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"
  • Field Details

    • 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
  • Constructor Details

    • GrammarSyntaxMessage

      public GrammarSyntaxMessage(int msgID, Grammar grammar, antlr.Token offendingToken, antlr.RecognitionException exception)
    • GrammarSyntaxMessage

      public GrammarSyntaxMessage(int msgID, Grammar grammar, antlr.Token offendingToken, Object arg, antlr.RecognitionException exception)
  • Method Details