antlr

Class TokenSymbol

class TokenSymbol extends GrammarSymbol

Field Summary
protected StringASTNodeType
Set to a value in the tokens {...} section
protected Stringparaphrase
describes what token matches in "human terms"
protected intttype
Constructor Summary
TokenSymbol(String r)
Method Summary
StringgetASTNodeType()
StringgetParaphrase()
intgetTokenType()
voidsetASTNodeType(String type)
voidsetParaphrase(String p)
voidsetTokenType(int t)

Field Detail

ASTNodeType

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

paraphrase

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

ttype

protected int ttype

Constructor Detail

TokenSymbol

public TokenSymbol(String r)

Method Detail

getASTNodeType

public String getASTNodeType()

getParaphrase

public String getParaphrase()

getTokenType

public int getTokenType()

setASTNodeType

public void setASTNodeType(String type)

setParaphrase

public void setParaphrase(String p)

setTokenType

public void setTokenType(int t)