I have a Win32 program (beta ver.) which will execute Polish arithmetic expressions e.g.
7 7 * (result) 4.9E01
Available as *.zip download (containing source & exe). Comments welcome.
BrWarburto
[attachment deleted by admin]
Also any FORTH compiler/interpreter does that natively. ;)
Quote from: BogdanOntanu on March 19, 2006, 08:04:58 PM
Also any FORTH compiler/interpreter does that natively. ;)
I barely remember playing with forth in the '80s--I didn't think it was still being used. :bg
Thanks for comments, folks. I agree that 'stack type' techniques, such as Forth, are not quite so frequent these days. However the maths coprocessor chip is definitely 'stack oriented' . This means that to write in the conventional reverse polish (with nested brackets etc.) you will need a reverse-polish to polish parser. Has any one here written such a beast ?? Also the very successful publishing house Adobe some years ago released their PostScript laguage which is still going strong as far as I know. Following on from PostScript is the Windows friendly GhostScript which is very similar in syntax to the original PostScript and appears to be an excellent product. Also early versions of Stephen Wolfram's Mathematica appeared to use a type of PostScript to enable the graphics displays on the console.
BrWarburto