services/script/yacc/lexer.cpp
/** Immediately switch to a different input stream.
 * @param input_file A readable stream.
 * 
 * @note This function does not reset the start condition to @c INITIAL .
 */
Immediately switch to a different input stream.
@param input_file A readable stream.

@note This function does not reset the start condition to @c INITIAL .
Immediately switch to a different input stream . @param input_file A readable stream . @note This function does not reset the start condition to @c INITIAL .
void yyFlexLexer::yyrestart(std::istream& input_file)
{
    if (!YY_CURRENT_BUFFER) {
        yyensure_buffer_stack ();
        YY_CURRENT_BUFFER_LVALUE =
            yy_create_buffer(yyin, YY_BUF_SIZE);
    }
    yy_init_buffer(YY_CURRENT_BUFFER, input_file);
    yy_load_buffer_state();
}
void yyFlexLexer :: yyrestart ( std :: istream & input_file ) { if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack ( ) ; YY_CURRENT_BUFFER_LVALUE = yy_create_buffer ( yyin , YY_BUF_SIZE ) ; } yy_init_buffer ( YY_CURRENT_BUFFER , input_file ) ; yy_load_buffer_state ( ) ; }
Immediately switch to a different input stream.
Immediately switch to a different input stream .