001 package com.croftsoft.apps.compiler.mini.node;
002
003 import java.util.*;
004
005 /*********************************************************************
006 * Static method library to support MiniNode implementations.
007 *
008 * @see
009 * MiniNode
010 *
011 * @author
012 * <A HREF="http://www.alumni.caltech.edu/~croft/">David W. Croft</A>
013 * @version
014 * 1999-04-25
015 *********************************************************************/
016
017 public class MiniNodeLib
018 //////////////////////////////////////////////////////////////////////
019 //////////////////////////////////////////////////////////////////////
020 {
021
022 private MiniNodeLib ( ) { }
023
024 //////////////////////////////////////////////////////////////////////
025 //////////////////////////////////////////////////////////////////////
026
027 public static void checkSemantics (
028 List miniNodeList, Stack parentMiniNodeStack )
029 throws SemanticErrorException
030 //////////////////////////////////////////////////////////////////////
031 {
032 Iterator i = miniNodeList.iterator ( );
033
034 while ( i.hasNext ( ) )
035 {
036 ( ( MiniNode ) i.next ( ) ).checkSemantics (
037 parentMiniNodeStack );
038 }
039 }
040
041 //////////////////////////////////////////////////////////////////////
042 //////////////////////////////////////////////////////////////////////
043 }