This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Kind<T> { | |
| type Make; | |
| } | |
| enum OptionKind {} | |
| impl<T> Kind<T> for OptionKind { | |
| type Make = Option<T>; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Kind<T> { | |
| type Make; | |
| } | |
| enum OptionKind {} | |
| impl<T> Kind<T> for OptionKind { | |
| type Make = Option<T>; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Running cargo run -- rustc_driver] | |
| Compiling rlib_view v0.1.0 (file:///Users/bjorn/Documents/rlib_view) | |
| Finished dev [unoptimized + debuginfo] target(s) in 2.42 secs | |
| Running `target/debug/rlib_view rustc_driver` | |
| Reading rlib rustc_driver | |
| Rust args: ["target/debug/rlib_view", "rustc_driver", "--sysroot", "/Users/bjorn/.rustup/toolchains/nightly-x86_64-apple-darwin"] | |
| name : rustc_driver | |
| hash : d79ca04fef62dfca | |
| disambiguator : 9d0979424297d363-2fdb30027cf93b5 | |
| needs_allocator : false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loop { | |
| for message in client.incoming_messages() { | |
| match message.unwrap() { | |
| OwnedMessage::Text(data) => data, | |
| _ => None, | |
| }; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Memory = Vec<u64>; | |
| enum Instr{ | |
| Call(Rvalue), // call *arg1 | |
| Jmp(Rvalue), // jmp *arg1 | |
| Print(Rvalue), // print *arg1 | |
| } | |
| enum Lvalue{ | |
| Reg(Reg), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| target/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::VecDeque; | |
| use std::iter::Peekable; | |
| use std::str::Chars; | |
| use std::mem; | |
| #[derive(Debug, Clone, Hash, Eq, PartialEq)] | |
| enum Instruction{ | |
| Nop, | |
| Next, | |
| Prev, |