Exercise: Reverse Polish Calculator
- Implement a reverse polish calculator.
Examples:
go run rpc.go "2 7 + =" 9
go run rpc.go "2.1 7.2 - =" -5.1
go run rpc.go "7 2 / =" 3.5
go run rpc.go "2 3 5 + * =" 16
Examples:
go run rpc.go "2 7 + =" 9
go run rpc.go "2.1 7.2 - =" -5.1
go run rpc.go "7 2 / =" 3.5
go run rpc.go "2 3 5 + * =" 16