Package antlr

Class GrammarAtom

Direct Known Subclasses:
CharLiteralElement, StringLiteralElement, TokenRefElement, WildcardElement

abstract class GrammarAtom extends AlternativeElement
A GrammarAtom is either a token ref, a character ref, or string. The analysis doesn't care.
  • Field Details

    • label

      protected String label
    • atomText

      protected String atomText
    • tokenType

      protected int tokenType
    • not

      protected boolean not
    • ASTNodeType

      protected String ASTNodeType
      Set to type of AST node to create during parse. Defaults to what is set in the TokenSymbol.
  • Constructor Details

    • GrammarAtom

      public GrammarAtom(Grammar g, Token t, int autoGenType)
  • Method Details