/*************************************************************************** statement.cpp - description ------------------- begin : Thu Mar 20 20:44:48 2003 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include ZObj * Statement::eval(){ //exec_line done exec_line = line; if(code!=NULL){ ZObj * res = code->eval(); if(is_zcont(res)) return res; ZObj::remove(res); } ZObj::collect(SymbolTable::instance()); return new ZStatus(true); } ZObj * StatementList::eval(){ //exec_line done exec_line = line; for(int i=0;ieval(); if(is_zstatus(res)){ if(!is_ok(res)) { // Almost::aout<class_name()<ret; ZObj::remove(ret); return res; } else if(is_zbreak(res)){ return res; } ZObj::remove(res); } } return new ZStatus(true); }