com.croftsoft.apps.compiler.mini.node
Class IndefiniteLoopStatementMiniNode

java.lang.Object
  extended by com.croftsoft.apps.compiler.mini.node.AbstractMiniNode
      extended by com.croftsoft.apps.compiler.mini.node.IndefiniteLoopStatementMiniNode
All Implemented Interfaces:
MiniNode, StatementMiniNode

public class IndefiniteLoopStatementMiniNode
extends AbstractMiniNode
implements StatementMiniNode

Parse tree node for the Mini programming language.

Version:
1999-04-25
See Also:
MiniNode
Author:
David W. Croft

Field Summary
protected  ComparisonMiniNode comparisonMiniNode
           
protected  StatementSequenceMiniNode statementSequenceMiniNode
           
 
Constructor Summary
IndefiniteLoopStatementMiniNode(ComparisonMiniNode comparisonMiniNode, StatementSequenceMiniNode statementSequenceMiniNode)
           
 
Method Summary
 void checkSemantics(Stack parentMiniNodeStack)
           
 void generate(MiniNodeCodeVisitor miniNodeCodeVisitor)
          Uses the Visitor design pattern to generate code.
 ComparisonMiniNode getComparisonMiniNode()
           
 StatementSequenceMiniNode getStatementSequenceMiniNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comparisonMiniNode

protected ComparisonMiniNode comparisonMiniNode

statementSequenceMiniNode

protected StatementSequenceMiniNode statementSequenceMiniNode
Constructor Detail

IndefiniteLoopStatementMiniNode

public IndefiniteLoopStatementMiniNode(ComparisonMiniNode comparisonMiniNode,
                                       StatementSequenceMiniNode statementSequenceMiniNode)
Method Detail

getComparisonMiniNode

public ComparisonMiniNode getComparisonMiniNode()

getStatementSequenceMiniNode

public StatementSequenceMiniNode getStatementSequenceMiniNode()

generate

public void generate(MiniNodeCodeVisitor miniNodeCodeVisitor)
Description copied from interface: MiniNode
Uses the Visitor design pattern to generate code.
 miniNodeCodeVisitor.generate ( this );
 

Specified by:
generate in interface MiniNode

checkSemantics

public void checkSemantics(Stack parentMiniNodeStack)
                    throws SemanticErrorException
Specified by:
checkSemantics in interface MiniNode
Specified by:
checkSemantics in interface StatementMiniNode
Throws:
SemanticErrorException

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)