帆软使用的第三方框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

46 lines
1.0 KiB

package com.fr.third.antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.cs.usfca.edu
* Software rights: http://www.antlr.org/license.html
*
* $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/TokenSymbol.java#2 $
*/
class TokenSymbol extends GrammarSymbol {
protected int ttype;
/** describes what token matches in "human terms" */
protected String paraphrase = null;
/** Set to a value in the tokens {...} section */
protected String ASTNodeType;
public TokenSymbol(String r) {
super(r);
ttype = Token.INVALID_TYPE;
}
public String getASTNodeType() {
return ASTNodeType;
}
public void setASTNodeType(String type) {
ASTNodeType = type;
}
public String getParaphrase() {
return paraphrase;
}
public int getTokenType() {
return ttype;
}
public void setParaphrase(String p) {
paraphrase = p;
}
public void setTokenType(int t) {
ttype = t;
}
}