Home
 

ctrl.h

ctrl.h

/*
 *  ctrl.h  Controller definition module
 */

typedef class OptionCls *POptionCls;
class OptionCls {
   public:
    static int option_info();
    friend class ControllerCls;
   private:
    OptionCls();    //Called only by ControllerCls
    static int  list;
    static int  emit;
};
/* end-OptionCls */

class SymtabCls;  // `forward'
class PTreeCls;   //     references

typedef class ControllerCls *PControllerCls;
class ControllerCls {
   public:
    ControllerCls(int argc, char** argv);
    void        print();
   private:
    SymtabCls   *std_table;
    PTreeCls    *parse_tree;
    int     open_file(char*);
};
/* end-ControllerCls */

typedef class MMCls *PMMCls;
class MMCls {
 public:
  static int allocate(int size);

 private:
  static int mem_pos;
};