inline void requiredEndOfClause(RexxErrorCodes error) { RexxToken *token = nextReal(); if (!token->isEndOfClause()) { syntaxError(error, token); } // NOTE: Some contexts where this is tested are // in loops that still process the next token. Back up // to the clause terminator so it is still there. previousToken(); }
/*! returns a sample with weight 1.0 containing a random number in the (0.0, 1.0) interval */ sample_type next() const { return sample_type(nextReal(),1.0); }