Skip to content

Instantly share code, notes, and snippets.

@willmurphyscode
Last active January 9, 2018 11:37
Show Gist options
  • Save willmurphyscode/545292f8bc194ef1c7d0183422c7c44a to your computer and use it in GitHub Desktop.
Save willmurphyscode/545292f8bc194ef1c7d0183422c7c44a to your computer and use it in GitHub Desktop.
pub enum Token {
LeftParen,
RightParen,
Operator(Opcode),
Operand(isize)
}
pub enum Opcode {
Add, Subtract, Multiply, Divide,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment