www.pudn.com > cppcc.rar > catch_clause.hh
/* * File: catch_clause.hh * $Id: catch_clause.hh,v 1.4 2002/06/26 20:45:49 alec Exp $ * * Author: Alec Panoviciu (alecu@email.com) * * Comments: * * Revision history: * * $Log: catch_clause.hh,v $ * Revision 1.4 2002/06/26 20:45:49 alec * g++ 3.x happy * * Revision 1.3 2002/06/13 11:35:40 alec * added #line stuff * * Revision 1.2 2002/05/27 02:58:46 alec * doc update * * Revision 1.1 2002/05/10 07:17:32 alec * *** empty log message *** * */ /* Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __CATCH_CLAUSE_HH__ #define __CATCH_CLAUSE_HH__ #includeusing namespace std; #include "debug.h" #include "parse_util.hh" /** * This class holds information about a catch clause found in an EBNF * expansion. * * For a catch construction like catch (XXX) { YYY }, the exceptionDecl string * will contain the XXX part, and the code string will contain the YYY part. */ class CatchClause { public: CatchClause (const string &exceptionDecl_, const Position &edPos, const string &code_, const Position &codePos) : exceptionDecl(edPos, exceptionDecl_), code(codePos, code_) {} CodeChunk exceptionDecl; CodeChunk code; }; #endif /* #ifndef __CATCH_CLAUSE_HH__ */