Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

reverse polish notation experiment

Language: Layout:
+ ] Show input
Absolute running time: 0.13 sec, cpu time: 0.07 sec, memory peak: 3 Mb, absolute service time: 0,16 sec 
edit mode |  history  | discussion
Running example test calculation
You entered: 9          Stack is now :  9
You entered: 9          Stack is now :  9,9
You entered: 3          Stack is now :  3,9,9
You entered: *          Stack is now :  27,9
You entered: 6          Stack is now :  6,27,9
You entered: 2          Stack is now :  2,6,27,9
You entered: **         Stack is now :  64,27,9
You entered: -          Stack is now :  37,9
You entered: *          Stack is now :  333
You entered: clear      Stack is now :  
You entered: hello_     Stack is now :  hello_
You entered: ucfirst    Stack is now :  Hello_
You entered: world      Stack is now :  world,Hello_
You entered: swap       Stack is now :  Hello_,world
You entered: .          Stack is now :  Hello_world
Output : Hello_world
You entered: clear      Stack is now :  

Starting interactive rpn calculator:

Enter values or operations or unquoted strings or 'quit' to quit.
DO NOT QUOTE STRINGS, the calculator will try and guess what you need.
For Multi-statement input use square braces and separate using spaces
RPN>

    
                
λ
.NET NoSQL database for rapid development