Listing 4: Control objects


//  Control  Objects
class  Start_Obj  :  public  Exp_Obj
    {
    public:
        virtual  int  GetPriority(  void  )  {  return  0;  }
        virtual  int  GetType(  void  )  {  return  START_TYPE;  }
    };
//-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  
class  Stop_Obj  :  public  Exp_Obj
    {
    public:
        virtual  int  GetType(  void  )  {  return  STOP_TYPE;  }
    };
//-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
class  Open_Paren_Obj  :  public  Exp_Obj
    {
    public:
        virtual  int  GetPriority(  void  )  {  return  OPEN_PAREN_PRIORITY;  }
        virtual  int  GetType(  void  )  {  return  OPEN_PAREN_TYPE;  }
    };
//-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  
class  Close_Paren_Obj  :  public  Exp_Obj
    {
    public:
        virtual  int  GetPriority(  void  )  {  return  CLOSE_PAREN_PRIORITY;  }
        virtual  int  GetType(  void  )  {  return  CLOSE_PAREN_TYPE;  }
    };
//End of File