Post Reply 
newRPL: Making RPL more readable
12-05-2016, 03:57 PM
Post: #9
RE: newRPL: Making RPL more readable
(12-04-2016 08:37 PM)ColinJDenman Wrote:  Perhaps the issue is more one of improving presentation rather than altering syntax and semantics.

first work on the language (syntax and semantics) then on the presentation (pretty-print)

What do you think of what I propose?


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

=>

BLOCK
...
ENDBLOCK

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

{ 0, 1 } { z, a } ->
In place of
0 1 -> z a @ IN (infix notation)

4: static vars

«
STATIC 'z' 0
STATIC 'a' 1
BLOCK
....
ENDBLOCK
»
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 - compsystems - 12-05-2016 03:57 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM



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