VectorOf<Word> PresentationParser::parseWordList( const VectorOf<Chars>& names, Chars& errMesg ) { genNames = names; if ( curToken == INIT ) getToken(); ListOf<Word> result; if ( curToken == INIT ) getToken(); while ( atStartOfWord() ) { Word w = parseWord( names, errMesg ); if ( errMesg.length() > 0 ) { return makeVectorOf(result); } result.append( w ); if ( curToken == COMMA ) { getToken(); if ( !atStartOfWord() ) { parseError("Expected a word here"); errMesg = parseErrorMessage; return makeVectorOf(result); } } } return makeVectorOf(result); }
void RunPackage::start() { ListOf<Chars> paramList; ListIterator<ListOf<ParamRecord> > I(params); int pname = 0; for (I.reset();!I.done();I.next(), pname++) { Chars pstring; pstring = paramToChars(I.value().getName(), getParameters().getValue(Chars(pname)), I.value().getType()); paramList.append( pstring ); } arcer = new RunPackageARCer( *this, packageObject, thePackageRecord.getCommand(), paramList); }