001 package com.croftsoft.apps.compiler.mini.node;
002
003 import java.util.*;
004
005 /*********************************************************************
006 * Parse tree node for the Mini programming language.
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 RelationMiniNode extends AbstractMiniNode
018 //////////////////////////////////////////////////////////////////////
019 //////////////////////////////////////////////////////////////////////
020 {
021
022 protected int relation;
023
024 //////////////////////////////////////////////////////////////////////
025 //////////////////////////////////////////////////////////////////////
026
027 public RelationMiniNode ( int relation )
028 //////////////////////////////////////////////////////////////////////
029 {
030 this.relation = relation;
031 }
032
033 //////////////////////////////////////////////////////////////////////
034 //////////////////////////////////////////////////////////////////////
035
036 public int getRelation ( ) { return relation; }
037
038 //////////////////////////////////////////////////////////////////////
039 // MiniNode interface methods
040 //////////////////////////////////////////////////////////////////////
041
042 public void generate ( MiniNodeCodeVisitor miniNodeCodeVisitor )
043 //////////////////////////////////////////////////////////////////////
044 {
045 miniNodeCodeVisitor.generateRelation ( this );
046 }
047
048 public void checkSemantics ( Stack parentMiniNodeStack )
049 throws SemanticErrorException
050 //////////////////////////////////////////////////////////////////////
051 {
052 }
053
054 //////////////////////////////////////////////////////////////////////
055 //////////////////////////////////////////////////////////////////////
056 }