Translation to and from Polish notation
|
11-15-2019, 04:54 PM
Post: #1
|
|||
|
|||
Translation to and from Polish notation
An excerpt from Translation to and from Polish Notation {C. L. Hamblin}
"Reverse Polish notation is embodied in the instruction languages of two recent machines, and Forward Polish notation is of use in mechanized algebra. This article illustrates, using a simple language without detail, some methods of translating between these notations and an 'orthodox' one of the kind used in FORTRAN and ALGOL. … … The following cases of translation will be considered in detail: I. Orthodox A to Reverse Polish. II. Orthodox A to Forward Polish. III. Forward Polish to Orthodox A. IV. Forward Polish to Reverse Polish. These cases provide a survey of the relevant techniques …" BEST! SlideRule |
|||
11-15-2019, 06:38 PM
Post: #2
|
|||
|
|||
RE: Translation to and from Polish notation
This is essentially what yacc does. It takes a c expression in algebraic notation and turns it into a RPN stream.
|
|||
11-15-2019, 11:08 PM
(This post was last modified: 11-15-2019 11:33 PM by toml_12953.)
Post: #3
|
|||
|
|||
RE: Translation to and from Polish notation
(11-15-2019 04:54 PM)SlideRule Wrote: An excerpt from Translation to and from Polish Notation {C. L. Hamblin} Here's an ANSI BASIC program that interprets a postfix string: Code: DECLARE EXTERNAL SUB rpn Tom L Cui bono? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)