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

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

public class DeclarationSequenceMiniNode
extends AbstractMiniNode

Parse tree node for the Mini programming language.

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

Field Summary
protected  List declarationMiniNodeList
           
 
Constructor Summary
DeclarationSequenceMiniNode(DeclarationMiniNode declarationMiniNode)
           
DeclarationSequenceMiniNode(DeclarationSequenceMiniNode declarationSequenceMiniNode, DeclarationMiniNode declarationMiniNode)
           
 
Method Summary
protected  void checkDuplicates()
           
 void checkSemantics(Stack parentMiniNodeStack)
           
 boolean declares(NameMiniNode nameMiniNode)
           
 void generate(MiniNodeCodeVisitor miniNodeCodeVisitor)
          Uses the Visitor design pattern to generate code.
 List getDeclarationMiniNodeList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

declarationMiniNodeList

protected List declarationMiniNodeList
Constructor Detail

DeclarationSequenceMiniNode

public DeclarationSequenceMiniNode(DeclarationSequenceMiniNode declarationSequenceMiniNode,
                                   DeclarationMiniNode declarationMiniNode)
                            throws SemanticErrorException
Throws:
SemanticErrorException - If there duplicate names are declared.

DeclarationSequenceMiniNode

public DeclarationSequenceMiniNode(DeclarationMiniNode declarationMiniNode)
                            throws SemanticErrorException
Throws:
SemanticErrorException - If there duplicate names are declared.
Method Detail

checkDuplicates

protected void checkDuplicates()
                        throws SemanticErrorException
Throws:
SemanticErrorException - If there duplicate names are declared.

getDeclarationMiniNodeList

public List getDeclarationMiniNodeList()

declares

public boolean declares(NameMiniNode nameMiniNode)

generate

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


checkSemantics

public void checkSemantics(Stack parentMiniNodeStack)
                    throws SemanticErrorException
Throws:
SemanticErrorException

CroftSoft Javadoc

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