coins.ffront
Class AssignLabelStmt

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

public class AssignLabelStmt
extends FStmt

ASSIGN statement


Field Summary
(package private)  Token fIdent
           
(package private)  Token fLabel
           
 
Fields inherited from class coins.ffront.FStmt
defLabel, fDeclMgr, fESMgr, fHir, fHirUtil, fLine, fSymTable, fTypeUtil, generatedStmts, hir, stmt
 
Constructor Summary
AssignLabelStmt(Token pLabel, Token pIdent, int line, FirToHir pfHir)
           
 
Method Summary
 void print(int level, java.lang.String spaces)
           
 void process()
          Add fLabel to list of fIdent in assignLabels and tranlate ASSIGN 10 TO i to i = 10;
 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
 

Field Detail

fIdent

Token fIdent

fLabel

Token fLabel
Constructor Detail

AssignLabelStmt

public AssignLabelStmt(Token pLabel,
                       Token pIdent,
                       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

process

public void process()
Add fLabel to list of fIdent in assignLabels and tranlate ASSIGN 10 TO i to i = 10;

Overrides:
process in class FStmt