- bark (the part of the tree you can touch)
- fruit (what you get from the tree)
- bon
- broots (bonsai's roots)
- sticks
rpn(1)
- reverse polish notation
When writing
npc 1 2 *
the shell automatically takes the asterisk as a wildard and it must be quoted. Should we do anything about this (i.e. havex
be the multiplication operator when…
I would prefer evaluate() only because Python, shell, and Lisp have beaten terror at the sight of the abbreviation into me.
Is this just every CalcType besides Val? Is there a better way to write that, e.g. match except Val?
I chipped in my thought on making sure rpn(1) functions like HP and Elektronika calculators when operating and this implementation satisfies me.
I'd like to see the bitwise operators and floor division from #21 included but all in all i think this is a good implementation and better than I could have done (or even intended to do).
rpn(1)
- reverse polish notation
I'm deciding, tentatively, with comments still desired:
- integer-only; no decimals supported
+
,-
- addition and subtraction*
,**
- multiplication and exponentiation (see…