Created
February 19, 2017 16:26
-
-
Save anonymous/90e49fbf072242fe38df7961f24a9747 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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), | |
Deref(Box<Lvalue>) | |
} | |
enum Rvalue{ | |
Lval(Lvalue), | |
Val(Val), | |
} | |
enum Reg{ | |
A, | |
B, | |
C, | |
D, | |
R | |
} | |
struct Val(u64); | |
fn main() { | |
let program = vec![ | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment