Post Reply 
newRPL: Making RPL more readable
12-05-2016, 05:52 PM
Post: #10
RE: newRPL: Making RPL more readable
(12-05-2016 03:57 PM)compsystems Wrote:  What do you think of what I propose?

1: Sentence body between keywords
::
...
;

=>

BLOCK
...
ENDBLOCK

Too much to type, perhaps we can choose some Unicode brackets, or some combination, similar to the normal brackets:
«: :»
«[ ]»
«| |»

and assign them to the keyboard near the << >> brackets.

(12-05-2016 03:57 PM)compsystems Wrote:  3: Syntax as PN (prefix notation) only for declarations and definitions of vars, not IN (infix notation)


LOCAL { z a } { 0 1 }

LOCAL { a b c d e f g ... } 0 @ Assigns to all variables the value of 0

This is the same grammar I proposed but accepting lists, it can be done.

(12-05-2016 03:57 PM)compsystems Wrote:  { 0, 1 } { z, a } ->
In place of
0 1 -> z a @ IN (infix notation)

Existing syntax has to remain untouched for compatibility, so the -> operator will remain the same. The old syntax is good when it's used at the beginning of a routine, it shows clearly what the arguments are, I like that syntax.

(12-05-2016 03:57 PM)compsystems Wrote:  4: static vars

«
STATIC 'z' 0
STATIC 'a' 1
BLOCK
....
ENDBLOCK
»

I don't know what you mean by static vars, if you mean "compiled" as the manual calls them, they don't exist in newRPL, they were just an artifact of how old RPL worked more than a feature of the language.
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 - Claudio L. - 12-05-2016 05:52 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM



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