00001 /* 00002 * File: numbered_la_spec.hh 00003 * $Id: numbered_la_spec.hh,v 1.6 2002/06/13 11:39:29 alec Exp $ 00004 * 00005 * Author: Alec Panovici (alecu@email.com) 00006 * 00007 * Comments: 00008 * 00009 * Revision history: 00010 * 00011 * $Log: numbered_la_spec.hh,v $ 00012 * Revision 1.6 2002/06/13 11:39:29 alec 00013 * added #line stuff 00014 * 00015 * Revision 1.5 2002/05/27 03:02:20 alec 00016 * doc update 00017 * 00018 * Revision 1.4 2002/05/22 01:37:39 alec 00019 * LOOKAHEAD fixes 00020 * 00021 * Revision 1.3 2002/05/16 21:37:40 alec 00022 * parser generation done 00023 * 00024 * Revision 1.2 2002/05/10 07:15:10 alec 00025 * parser parse tree ok 00026 * 00027 * Revision 1.1 2002/05/08 18:20:05 alec 00028 * *** empty log message *** 00029 * 00030 */ 00031 00032 00033 /* 00034 Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com) 00035 00036 This program is free software; you can redistribute it and/or modify 00037 it under the terms of the GNU General Public License as published by 00038 the Free Software Foundation; either version 2 of the License, or 00039 (at your option) any later version. 00040 00041 This program is distributed in the hope that it will be useful, 00042 but WITHOUT ANY WARRANTY; without even the implied warranty of 00043 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00044 GNU General Public License for more details. 00045 00046 You should have received a copy of the GNU General Public License 00047 along with this program; if not, write to the Free Software 00048 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00049 00050 */ 00051 00052 #ifndef __NUMBERED_LA_SPEC_HH__ 00053 #define __NUMBERED_LA_SPEC_HH__ 00054 00055 #include <iostream> 00056 00057 #include "debug.h" 00058 #include "la_spec.hh" 00059 00060 class NumberedLaSpec : public LaSpec 00061 { 00062 public: 00063 00064 NumberedLaSpec (int fixedLa_, EbnfNode *synLa_, 00065 const string &semLa_, const Position &pos, 00066 bool ignore_ = true) : 00067 LaSpec(fixedLa_, synLa_, semLa_, pos), 00068 ignore(ignore_) 00069 {} 00070 00071 virtual LaSpec* clone(); 00072 00073 #ifdef DEBUG 00074 void dump (ostream &os) const; 00075 #endif 00076 00083 int id; 00084 00091 bool ignore; 00092 }; 00093 00094 #endif /* #ifndef __NUMBERED_LA_SPEC_HH__ */