prefix notation and () on newRPL project
|
01-21-2019, 05:51 PM
Post: #2
|
|||
|
|||
RE: prefix notation and () on newRPL project
(01-21-2019 05:06 PM)compsystems Wrote: Hi Claudio, While crazy, adding alternate syntax rules to RPL is possible and I'm considering an alternate language to the same code. The idea is to compile code in other languages to an RPL stream. Decompiling is much more complex so it would probably have to keep the source code separate (like most compiled languages). Lisp would be very straighforward: An opening parenthesis simply compiles as the start of a list '{', everything gets pushed to the stream until a closing parenthesis is found, which is compiled as an end of list '}'. Then parenthesis simply pushes the number of arguments, then does LIST-> ROLL EVAL to execute the first argument. But rather than adding a language of similar difficulty as RPL, the idea is to add a much higher level language, like Lua or python. Compiling these languages is very difficult, so I'm still studying this as a possibility, not saying I might do it. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)