00001 /* 00002 * File: production_spec.cc 00003 * $Id: production_spec.cc,v 1.2 2002/06/13 11:41:01 alec Exp $ 00004 * 00005 * Author: Alec Panoviciu (alecu@email.com) 00006 * 00007 * Comments: 00008 * 00009 * Revision history: 00010 * 00011 * $Log: production_spec.cc,v $ 00012 * Revision 1.2 2002/06/13 11:41:01 alec 00013 * added #line stuff 00014 * 00015 * Revision 1.1 2002/05/10 07:17:33 alec 00016 * *** empty log message *** 00017 * 00018 */ 00019 00020 /* 00021 Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com) 00022 00023 This program is free software; you can redistribute it and/or modify 00024 it under the terms of the GNU General Public License as published by 00025 the Free Software Foundation; either version 2 of the License, or 00026 (at your option) any later version. 00027 00028 This program is distributed in the hope that it will be useful, 00029 but WITHOUT ANY WARRANTY; without even the implied warranty of 00030 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00031 GNU General Public License for more details. 00032 00033 You should have received a copy of the GNU General Public License 00034 along with this program; if not, write to the Free Software 00035 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00036 00037 */ 00038 00039 #include "production_spec.hh" 00040 #include "ebnf_la_node.hh" 00041 00042 #ifdef DEBUG 00043 00044 void ProductionSpec::dump (ostream &os) const 00045 { 00046 os << retType.code << " " << name << "(" << formalArgs.code << ")" << 00047 " throw " << exceptList.code << " @ " << pos << endl; 00048 os << "{" << endl; 00049 os << "preamble code: {" << preambleCode.code << "}" << endl; 00050 if (expansion != NULL) expansion->dump(os); 00051 else os << "<no expansion>"; 00052 os << endl << "}" << endl; 00053 } 00054 00055 #endif