Post Reply 
prefix notation and () on newRPL project
01-21-2019, 05:06 PM
Post: #1
prefix notation and () on newRPL project
Hi Claudio,

2 Crazy ideas =)

◉ Observing the u_LISP project that has a notation similar to the prefix notation, and that the R-PN is a inverse prefix.
So I "think" it's easy to add a second type of operation engine PN/prefix ("eliminate" the Reverse) or consult it in this community if they are involved in this type of notation in your project.


[Image: lispbadgehand.jpg]


(3+4) * (5-6) returns -7 // "infix" operation or what better should be called standard notation

*( +(3,4), -(5,6) ) prefix operation with ( )
* + 3 4 - 5 6 prefix operation

◉ A second idea, RPN with parentheses, this gives a faster interpretation of the source code

3 4 + 5 6 - * postfix operation
((3,4)+, (5,6)-)* postfix operation with ()


The importance of the use of parentheses is that each operator can operate on n arguments
(a,b,c)+ (a,b,c,d,e)-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
prefix notation and () on newRPL project - compsystems - 01-21-2019 05:06 PM



User(s) browsing this thread: 1 Guest(s)