Skip to content

Instantly share code, notes, and snippets.

@aarroyoc
Created August 27, 2014 10:43
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 aarroyoc/a01de8904fd39a442c20 to your computer and use it in GitHub Desktop.
Save aarroyoc/a01de8904fd39a442c20 to your computer and use it in GitHub Desktop.
instruction.rs
#[deriving(FromPrimitive)]
enum Instruction {
INTEGER = 0x00,
STRING = 0x01,
ADD = 0x02,
SHOWINTEGER = 0x0A,
SHOWVERSION = 0x0E,
EXITVM = 0x0F
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment