newRPL: Making RPL more readable
|
12-02-2016, 03:52 PM
(This post was last modified: 12-02-2016 10:03 PM by compsystems.)
Post: #6
|
|||
|
|||
RE: newRPL: Making RPL more readable
Hello: the user RPL (hp48) is not 100% RPN (Reverse Polish notation)
sample 1 -> a // The operator -> (LOCAL) is in the middle (infix notation) operand operator operand PHP Code: « The above code 100% RPN must be 1 'a' -> // The operator -> (LOCAL) (postfix notation) operand operand operator 100% RPN PHP Code: « or 100% RPN PHP Code: « but I agree more with prefix notation (POLISH NOTATION) that infix notation. Prefix notation, at only some parts of the code, for example to declare local & static variables PHP Code: « I do not like ( :: ; ) for a sub-block or scope, It gives the appearance of low-level language, and less readable. In addition :: ; these delimiters do not comply with the rule opening-close as [ ] or { } or < > or « » or ´ ` or ( ). The colon can be used for other purposes such as labeling (3,4) "x1" ->TAG, But keep it when stored (3,4) "x1" ->TAG 'sol1' STO sol1 [enter] :x1: (3,4) PHP Code: « I suggest using keywords, your? PHP Code: « or PHP Code: « or PHP Code: « PHP Code: « In my programs I also use, variable statics PHP Code: main A possible syntax in NEWRPL PHP Code: « or PHP Code: « |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)