/* File: err_sym6.dat Date: 29 Mar 2004 duplicate directive */ error-symbols (file-name err_symbols ,name-space NS_yacco2_err_symbols) { "nested-files-exceeded" (sym-class LR1_err_nested_files_exceeded { user-declaration public: int x_; LR1_err_nested_files_exceeded(INT Nested_file_cnt,std::string& File_name); INT nested_cnt(){return nested_cnt_;}; std::string* file_exceeded(){return &file_exceeded_;}; private: INT nested_cnt_; std::string file_exceeded_; *** user-implementation LR1_err_nested_files_exceeded:: LR1_err_nested_files_exceeded(INT Nested_cnt,std::string& File_name){ T_CTOR("nested-files-exceeded",T_LR1_err_nested_files_exceeded_,0,0,false,true,0,0) nested_cnt_ = Nested_cnt;file_exceeded_ += File_name.c_str();} *** constructor x_ = -1; *** destructor R->x_ = 0; *** op cout << "hi" << endl; *** constructor x_ = -1; *** } ) }