Last active
June 7, 2016 17:47
-
-
Save aleksanb/836342ba62379c4c8435e1a49559344a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let op: fn(f64, f64) -> f64 = match token { | |
"+" => Add, | |
"-" => Sub, | |
"*" => Mult, | |
_ => panic!("Not yet supported"), | |
}; | |
stack.push(op(left, right)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment