4 ms·
Here is a similar calculator implemented in 58 languages including in 16 lines of Python code :) http://www.math.bas.bg/bantchev/place/rpn/rpn.impl.html http:/
by vladoh 14y ago
Here is a similar calculator implemented in 58 languages including in 16 lines of Python code :)
http://www.math.bas.bg/bantchev/place/rpn/rpn.impl.html http://www.math.bas.bg/bantchev/place/rpn/rpn.impl.html
- konstruktor 14y agoThis is an RPN calculator, which means you can basically execute the input using the token stream directly. TFA shows executing a context free language, which requires parsing, explaining the program being an order of magnitude larger.