Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shared via Rust Playground
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
You can’t perform that action at this time.