Skip to content

Instantly share code, notes, and snippets.

@aarroyoc
Created August 19, 2014 11:38
Show Gist options
  • Save aarroyoc/6401592b569b0a3b1334 to your computer and use it in GitHub Desktop.
Save aarroyoc/6401592b569b0a3b1334 to your computer and use it in GitHub Desktop.
#[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