coins.ffront
クラス Token
java.lang.Object
|
+--coins.ffront.Token
- すべての実装インタフェース:
- HasConstValue, Node
- public class Token
- extends java.lang.Object
- implements Node, HasConstValue
コンストラクタの概要 |
(パッケージプライベート) |
Token(int n,
java.lang.String s)
|
(パッケージプライベート) |
Token(int n,
java.lang.String s,
FirToHir pfHir)
|
(パッケージプライベート) |
Token(int n,
java.lang.String s,
int k)
|
(パッケージプライベート) |
Token(int n,
java.lang.String s,
int k,
FirToHir pfHir)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fHir
FirToHir fHir
fDeclMgr
DeclManager fDeclMgr
fHirUtil
HirUtility fHirUtil
fTypeUtil
TypeUtility fTypeUtil
Token
Token(int n,
java.lang.String s,
FirToHir pfHir)
Token
Token(int n,
java.lang.String s)
Token
Token(int n,
java.lang.String s,
int k,
FirToHir pfHir)
Token
Token(int n,
java.lang.String s,
int k)
addFHir
public Token addFHir(FirToHir pfHir)
setKind
public Token setKind(int k)
changeLexem
public java.lang.String changeLexem()
copy
public Token copy()
copy
public Token copy(java.lang.String l)
toString
public java.lang.String toString()
- 定義:
- インタフェース
Node
内の toString
- オーバーライド:
- クラス
java.lang.Object
内の toString
print
public void print(int level,
java.lang.String spaces)
- 定義:
- インタフェース
Node
内の print
getKind
public int getKind()
getLexem
public java.lang.String getLexem()
kindName
public java.lang.String kindName()
makeIdentExp
public Exp makeIdentExp()
- Make HIR Exp node from this token which is ident.
- 戻り値:
- exp
makeExp
public Exp makeExp()
- Make HIR Exp node from this token.
case IDENT: (thisVar = defined var of this token)
case Param:
case complex: complexExp(contentsExp(thisVar))
default: contentsExp(thisVar)
case StmtFuncParam: actual parameter of StmtFuncCall
case complex: complexExp(thisVar)
case ENTRY name: returnVar of this subprogram
default: thisVar
case CONST: ConstNode
- 定義:
- インタフェース
Node
内の makeExp
- 戻り値:
- HIR Exp.
makeArgAddr
public Exp makeArgAddr(FStmt pCallStmt)
- Make HIR Exp node from this token as a call-by-address parameter in pCallStmt.
case IDENT: (thisVar = defined var of this token)
case Param: thisVar
default: address of thisVar
case LABEL: add this to pCallStmt's label list and return null.
case CONST: address of temp ( temp = this )
- 定義:
- インタフェース
Node
内の makeArgAddr
- パラメータ:
pCallStmt
- a call statement or a function call expression
- 戻り値:
- call-by-address parameter.
dp
void dp(java.lang.String str)
getConstValue
public FNumber getConstValue()
- Return this token value as integer if it's enable
ex) int_const node, real_const node, and so on.
- 定義:
- インタフェース
HasConstValue
内の getConstValue
getLineNo
public int getLineNo()
- 戻り値:
- line no of this token.