198 std::set<Variant>::iterator p;
199 p=mFunctionSet.begin();
203 while(p != mFunctionSet.end())
209 string name = (*p).GetFunctionName();
214 bool functionNotFound =
true;
217 for(
int library = 0; library < 6; library++)
255 while (functionTable[i].name && functionNotFound)
258 bool globalnamespace =
true;
262 name2=name.substr(1,name.length());
265 if(functionTable[i].name == name2)
272 string filename =
"<PEBL STANDARD LIBRARY FILE>";
279 PNode * node0 =
new OpNode(PEBL_AND, node0a, node0b,filename, linenum);
282 PNode * node1 =
new DataNode(functionTable[i].funcname,filename, linenum);
290 OpNode * node2 =
new OpNode(PEBL_LIBRARYFUNCTION, node0, node1,filename, linenum);
299 OpNode * node2 =
new OpNode(PEBL_LIBRARYFUNCTION, node0, node1,filename, linenum);
317 functionNotFound =
false;
330 if(functionNotFound ==
true)
332 string message =
"Function [" ;
334 message +=
"] not found in libraries or user-defined functions.";
336 std::cerr <<
"********>>>>>ERROR: " << message << std::endl;
338#ifdef PEBL_EMSCRIPTEN
340 console.error(
"MISSING FUNCTION: " + UTF8ToString($0));