Post Reply 
newRPL: Making RPL more readable
12-07-2016, 12:04 PM (This post was last modified: 12-07-2016 12:50 PM by Vtile.)
Post: #18
RE: newRPL: Making RPL more readable
Even a decent editor with proper code folding would make the RPL programs a light year more readable, compared to the current state where once edited the program looks like a dropped through the blender. That is with the regular editor that comes with the 50g. Edit. That said, the problem with automatic code folding will come with the highly modular library system that is on the NewRPL I would quess, so if the programs would retain the same folding as the user have typed in might be the most efficient solution instead of trying to create "do it all" system where the code folding information would need to be written in the libraries. If that is what will be done (the code folding information to libraries) I would like to see it as optional information that can be stripped down, in case of you need those bytes to something more important things in your calculator.

One other big deal with the programs (while mine aren't complex) is the use of repeated stack manipulation which often makes the program hard to read after some time. Paired with unability to write even tiny few letter persistent comments makes it pita. Edit. So I come with this idea of "split screen mode" copied from the AUR, where on the left is the code and on the right are the (first) comments per line. With one key you could cycle the comment half of the sceen OFF/Double view/full screen. (example S7 IL code: http://1.bp.blogspot.com/-8p6aBJ_3AR4/Ti...bslawl.png)

These aren't much of the language, but more of the IDE side of the things. As a side note, I like the ability to write some mathematical formulas in algebraic format.

There is not much in general that you can do with the tiny screen of the calculator so KISS.

Code:
<< DEPTH Y → X Y 
<< 2 'Y' STO
2 X START
Y PICK
2 Y + 'Y' STO
NEXT
X →LIST
X ROLLD
X 1 - DROPN
OBJ→ DROP
>>
>>

Code:

<< 
 DEPTH Y → X Y         @Crte LVars
 <<                          @Main sub.
  2 'Y' STO                @Save starting value
   2 X START             @Main loop
     Y PICK                 @Which item to pick
     2 Y + 'Y' STO           
   NEXT                    @END Main loop
  X →LIST
  X ROLLD
  X 1 - DROPN           @Count format conversion
  OBJ→ DROP            
 >>                         @END Main Sub
>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Making RPL more readable - Han - 12-02-2016, 12:39 PM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 07:37 AM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 10:12 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM
RE: newRPL: Making RPL more readable - Vtile - 12-07-2016 12:04 PM



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