Skip to content

Instantly share code, notes, and snippets.

@bjorn3
Forked from anonymous/playground.rs
Created February 19, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjorn3/f82e483c16c4fd7292bc916e4dea05fe to your computer and use it in GitHub Desktop.
Save bjorn3/f82e483c16c4fd7292bc916e4dea05fe to your computer and use it in GitHub Desktop.
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