The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: BrWarburto on March 19, 2006, 12:27:54 PM

Title: Polish Arithmetic/Algebra
Post by: BrWarburto on March 19, 2006, 12:27:54 PM
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]
Title: Re: Polish Arithmetic/Algebra
Post by: BogdanOntanu on March 19, 2006, 08:04:58 PM
Also any FORTH compiler/interpreter does that natively. ;)
Title: Re: Polish Arithmetic/Algebra
Post by: rags on March 19, 2006, 10:51:10 PM
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
Title: Re: Polish Arithmetic/Algebra
Post by: BrWarburto on March 21, 2006, 12:23:02 PM
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