/// Parses a WebAssembly expression with a given terminating opcode from the input.
Parses a WebAssembly expression with a given terminating opcode from the input.
Parses a WebAssembly expression with a given terminating opcode from the input .
fn parse_expression_with_terminal<'input>(
    terminal: u8,
) -> impl FnMut(&'input [u8]) -> IResult<&'input [u8], Expression> {
    map(
        terminated(
            fold_many0(parse_instruction, Vec::new, |mut accumulator, item| {
                accumulator.push(item);
                accumulator
            }),
            match_byte(terminal),
        ),
        Expression::new,
    )
}
fn parse_expression_with_terminal < ' input > ( terminal : u8 , ) -> impl FnMut ( & ' input [ u8 ] ) -> IResult < & ' input [ u8 ] , Expression > { map ( terminated ( fold_many0 ( parse_instruction , Vec :: new , | mut accumulator , item | { accumulator . push ( item ) ; accumulator } ) , match_byte ( terminal ) , ) , Expression :: new , ) }
Parses a WebAssembly expression with a given terminating opcode from the input.
Parses a WebAssembly expression with a given terminating opcode from the input .
terminal
u8