A Reverse Polish Lisp language implemented in Ruby
Find a file
2022-08-30 13:37:43 +02:00
bin REPL outputs stack and variables defined as RPL.rb code 2022-07-03 19:46:05 +02:00
lib Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-08-30 13:37:43 +02:00
spec Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-03-12 22:23:18 +01:00
.gitignore Initial commit 2021-10-30 17:44:38 +02:00
LICENSE Initial commit 2021-10-30 17:44:38 +02:00
Rakefile replace Makefile with equivalent Rakefile 2022-02-22 16:53:28 +01:00
README.md FIXME: found a bug: var1 var2 +|-|*|\ ===> result in on stack (normal) AND stored in var1 (_bug_) 2022-07-03 19:50:28 +02:00
rpl.gemspec 0.8.0 2022-03-12 22:26:17 +01:00

rpl.rb

https://github.com/louisrubet/rpn/ inspired language in ruby

To run REPL locally: rake run

To run the test suite: rake test

BUGs

  • var1 var2 +|-|*|\ ===> result in on stack (normal) AND stored in var1 (bug)

TODO-list

  • pseudo filesystem: subdir/namespace for variables . 'a dir' crdir 'a dir' cd vars
  • SDL-based graphic environment/API

Not implemented

  • use IFT, IFTE . if . then . else . end
  • use LOOP, TIMES . start . for . next . step . do . until . while . repeat
  • use LSTO . ->, →