coins.ffront
Class EntryStmt

java.lang.Object
  extended bycoins.ffront.FStmt
      extended bycoins.ffront.EntryStmt
All Implemented Interfaces:
Node

public class EntryStmt
extends FStmt

Entry statement


Field Summary
 
Fields inherited from class coins.ffront.FStmt
defLabel, fDeclMgr, fESMgr, fHir, fHirUtil, fLine, fSymTable, fTypeUtil, generatedStmts, hir, stmt
 
Constructor Summary
EntryStmt(Token pIdent, FirList pArgs, int line, FirToHir pfHir)
           
 
Method Summary
 void addParamTo(FirList paramList)
          Add parameters of this ENTRY statement to paramList.
 java.lang.String getIdent()
           
 Token getIdentToken()
           
 void makeSubp(int entryCount, FirList pArgs)
          make HIR subprogram from this ENTRY statement
 void print(int level, java.lang.String spaces)
           
 void process()
          Translate ENTRY g(s) to L_g: If this is a function entry then redefine g as EntryType variable.
 java.lang.String toString()
           
 
Methods inherited from class coins.ffront.FStmt
addGeneratedStmt, addGeneratedStmtFirst, addLabel, addResultTo, dp, getLabelString, getResult, hasNotLabel, makeArgAddr, makeExp, mergeSymTable, preprocess, setLineAndFileInfo, setSymTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntryStmt

public EntryStmt(Token pIdent,
                 FirList pArgs,
                 int line,
                 FirToHir pfHir)
Method Detail

print

public void print(int level,
                  java.lang.String spaces)
Specified by:
print in interface Node
Overrides:
print in class FStmt

toString

public java.lang.String toString()
Specified by:
toString in interface Node
Overrides:
toString in class FStmt

getIdent

public java.lang.String getIdent()

getIdentToken

public Token getIdentToken()

process

public void process()
Translate ENTRY g(s) to L_g: If this is a function entry then redefine g as EntryType variable.

Overrides:
process in class FStmt

addParamTo

public void addParamTo(FirList paramList)
Add parameters of this ENTRY statement to paramList.

Parameters:
paramList -

makeSubp

public void makeSubp(int entryCount,
                     FirList pArgs)
make HIR subprogram from this ENTRY statement

Parameters:
entryCount -
pArgs -