# Homework 1: Postfix Evaluation ## submission instructions cargo new 1name your
ID: 3595848 • Letter: #
Question
# Homework 1: Postfix Evaluation ## submission instructions cargo new 1name your ed 1 Save your program in /lib.rs git add Cargo.toml erc/lib.re git commit git remote add origin metastasis@gradebot.orgauser/username /1/1 git pueh origin master Description e a [postfix](https://en.wikipedia.org/wiki/Reverse Polish-notation } expression evaluator· An expression consists of operands and operators. An operand is signed inte {i8ize). An operator i8 +,-, or t' with their conmon Benantica. An expreselon is valid if it can be evaluated to a Bigned integer For example, the following are valid expressions 100 1 2 1 2 3 The following expresai ons are invalid: I empty expression 1 2 ## Public API Your program must provide the following public API pub enum Operator Add Sub Mul, pub enum Token Operator (Operator), Operand(isize),Explanation / Answer
evaluation_postfix_xpressions.rs
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.