]>
Witch of Git - jade-rose/blob - toolchain/src/lib.rs
3 pub use inst
::{decode
::Decode
, Inst
};
6 pub fn disassemble(reader
: &mut impl io
::Read
) -> io
::Result
<Vec
<Inst
>> {
7 let mut results
= Vec
::new();
9 match Inst
::decode(reader
) {
10 Ok(inst
) => results
.push(inst
),
11 Err(err
) if err
.kind() == io
::ErrorKind
::UnexpectedEof
=> break,
12 Err(err
) => return Err(err
),