Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

numbered_la_spec.cc

Go to the documentation of this file.
00001 /*
00002  *  File:       numbered_la_spec.cc
00003  *              $Id: numbered_la_spec.cc,v 1.4 2002/06/13 11:39:17 alec Exp $
00004  *
00005  *  Author:     Alec Panoviciu (alecu@email.com)
00006  * 
00007  *  Comments:
00008  *
00009  *  Revision history:
00010  *
00011  *  $Log: numbered_la_spec.cc,v $
00012  *  Revision 1.4  2002/06/13 11:39:17  alec
00013  *  added #line stuff
00014  *
00015  *  Revision 1.3  2002/05/22 01:37:28  alec
00016  *  LOOKAHEAD fixes
00017  *
00018  *  Revision 1.2  2002/05/10 07:15:10  alec
00019  *  parser parse tree ok
00020  *
00021  *  Revision 1.1  2002/05/08 18:19:48  alec
00022  *  *** empty log message ***
00023  *
00024  */
00025 
00026 /*
00027   Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com)
00028 
00029   This program is free software; you can redistribute it and/or modify
00030   it under the terms of the GNU General Public License as published by
00031   the Free Software Foundation; either version 2 of the License, or
00032   (at your option) any later version.
00033 
00034   This program is distributed in the hope that it will be useful,
00035   but WITHOUT ANY WARRANTY; without even the implied warranty of
00036   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00037   GNU General Public License for more details.
00038 
00039   You should have received a copy of the GNU General Public License
00040   along with this program; if not, write to the Free Software
00041   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00042 
00043  */
00044 
00045 
00046 #include "numbered_la_spec.hh"
00047 #include "ebnf_node.hh"
00048 
00049 LaSpec* NumberedLaSpec::clone()
00050 {
00051   EbnfNode *cla = synLa == NULL ? NULL : synLa->clone();
00052   return new NumberedLaSpec(fixedLa, cla, semLa.code, semLa.pos, ignore);
00053 }
00054 
00055 #ifdef DEBUG
00056 void NumberedLaSpec::dump (ostream &os) const
00057 {
00058   os << "LOOKAHEAD@"<<this<<"(" << fixedLa << ", ";
00059   if (synLa != NULL) synLa->dump(os);
00060   os << ", " << semLa.code << ")";
00061 }
00062 #endif

Generated at Tue Jul 9 21:05:44 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001