Package antlr

Class TokenSymbol

Direct Known Subclasses:
StringLiteralSymbol

class TokenSymbol extends GrammarSymbol
  • Field Details

    • ttype

      protected int ttype
    • paraphrase

      protected String paraphrase
      describes what token matches in "human terms"
    • ASTNodeType

      protected String ASTNodeType
      Set to a value in the tokens {...} section
  • Constructor Details

    • TokenSymbol

      public TokenSymbol(String r)
  • Method Details

    • getASTNodeType

      public String getASTNodeType()
    • setASTNodeType

      public void setASTNodeType(String type)
    • getParaphrase

      public String getParaphrase()
    • getTokenType

      public int getTokenType()
    • setParaphrase

      public void setParaphrase(String p)
    • setTokenType

      public void setTokenType(int t)