News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Polish Arithmetic/Algebra

Started by BrWarburto, March 19, 2006, 12:27:54 PM

Previous topic - Next topic

BrWarburto

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]

BogdanOntanu

Also any FORTH compiler/interpreter does that natively. ;)
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

rags

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
God made Man, but the monkey applied the glue -DEVO

BrWarburto

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