int declarations() { if(dtype()) { if(idlist()) { if(T[nt++].t==27) { if(declarations()) return 1; else return 0; } else { strcpy(miss,";"); return 0; } } else return 0; } else return 1; }
void req_overviewPage::createResponseBuffer() { // get list of published (=visible/unhidden) histograms cass::PostProcessors *pp(cass::PostProcessors::instance("")); cass::IdList* idlist(pp->getIdList()); cass::PostProcessors::keyList_t list = idlist->getList(); _responseBuffer = ""; _responseBuffer += "<html><body>\n"; _responseBuffer += "List of active and published processors:\n"; for (cass::PostProcessors::keyList_t::const_iterator it=list.begin(); it!=list.end(); ++it) _responseBuffer += "<li><a href=\"" + std::string(ADDR_HIST2DPage) + *it + ".html\">" + *it + "</a></li>\n"; _responseBuffer += "end of list.\n"; _responseBuffer += "</body></html>\n"; }
int idlist() { if(T[nt++].t==50) { if(T[nt++].t==26) { if(idlist()) return 1; else return -1; } else return 1; } else return -1; }
int declarations() { if(dtype()) { if(idlist()) { if(T[nt++].t==27) { if(declarations()) return 1; else return -1; } else return -1; } else return -1; } else return 1; }
int idlist() { if(T[nt++].t==50) { if(T[nt++].t==26) { if(idlist()) return 1; else return 0; } else { nt--; return 1; } } else { strcpy(miss,"identifier"); return 0; } }