Commit graph

162 commits

Author SHA1 Message Date
Gwenhael Le Moine
4dfe9554cb
Persist stack and variable in ~/.local/state/rpl.rb/machine 2022-10-04 16:49:24 +02:00
Gwenhael Le Moine
dfac755ce5
File.expand_path is way more useful than File.absolute_path 2022-10-04 16:47:48 +02:00
Gwenhael Le Moine
62c0420a57
forgot to update in-language version, bump to 0.9.1 2022-10-04 14:22:55 +02:00
Gwenhael Le Moine
6562a4297e
basic tests of complexes' operations 2022-08-31 13:05:26 +02:00
Gwenhael Le Moine
d3d24cb145
implement some Complex words 2022-08-31 12:21:46 +02:00
Gwenhael Le Moine
409ed653f2
replaces remnant proc run() with RplProgram 2022-08-31 12:21:14 +02:00
Gwenhael Le Moine
b523e2b1cd
parse and represent Complex numbers 2022-08-31 11:10:33 +02:00
Gwenhael Le Moine
418fc078a0
words: one file per category 2022-08-31 10:10:42 +02:00
Gwenhael Le Moine
c0910c0899
split REPL words; factorize category naming; style 2022-08-31 09:57:10 +02:00
Gwenhael Le Moine
4973b7a4b8
document some Complex words 2022-08-30 16:42:46 +02:00
Gwenhael Le Moine
7d7d4aa25f
tidying 2022-08-30 16:11:37 +02:00
Gwenhael Le Moine
db0d8cb5a9
[bug] fix variable overwriting bug 2022-08-30 14:35:13 +02:00
Gwenhael Le Moine
703c659f83
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-08-30 13:37:43 +02:00
Gwenhael Le Moine
edd0884f9d
s/display/frame_buffer/g
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2022-08-30 13:37:34 +02:00
Gwenhael Le Moine
c10c7f02fd
REPL outputs stack and variables defined as RPL.rb code 2022-07-03 19:46:05 +02:00
Gwenhael Le Moine
010460a230
[display] (wip) first words
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2022-05-31 16:43:31 +02:00
Gwenhael Le Moine
48be6a643e
add a display matching HP-50g's size 2022-05-25 16:30:02 +02:00
Gwenhael Le Moine
9b6de19ed7
0.8.0 2022-03-12 22:26:17 +01:00
Gwenhael Le Moine
2cf151923d
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-03-12 22:23:18 +01:00
Gwenhael Le Moine
3747453aef
rpl comments with @ 2022-03-12 22:20:30 +01:00
Gwenhael Le Moine
256053f31a
0.7.2 2022-03-09 11:23:30 +01:00
Gwenhael Le Moine
76307759a4
integers are printed as such, without .0 part 2022-03-09 11:22:13 +01:00
Gwenhael Le Moine
2a005112be
catching up to rpn-2.4.x: date & time return iso8601 parts 2022-03-08 12:40:14 +01:00
Gwenhael Le Moine
f3a0d7e91e
0.7.1: fix numeric parsing not using BigDecimal 2022-03-02 14:27:35 +01:00
Gwenhael Le Moine
7290d80046
0.7.0 2022-03-02 14:06:26 +01:00
Gwenhael Le Moine
e7ebbbee56
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-03-02 14:03:13 +01:00
Gwenhael Le Moine
e27f829ff3
numerals formatting in sync with rpn-2.4 2022-03-02 14:03:02 +01:00
Gwenhael Le Moine
9c29599fb7
STO{+,-,/,*} follow semantic of rpn-2.4 2022-03-01 21:53:43 +01:00
Gwenhael Le Moine
92bd286f71
implement EDIT 2022-02-28 11:41:56 +01:00
Gwenhael Le Moine
5c1cc3e617
better map 2022-02-28 11:41:39 +01:00
Gwenhael Le Moine
159a963490
wrapper around object creation 2022-02-28 11:40:47 +01:00
Gwenhael Le Moine
6219323661
avoid circular requiring 2022-02-26 20:51:09 +01:00
Gwenhael Le Moine
2515bbd90c
only run programs 2022-02-26 19:57:38 +01:00
Gwenhael Le Moine
fcb809d797
[WIP] almost there 2022-02-26 18:53:39 +01:00
Gwenhael Le Moine
e9dbfbdfd8
new parser based on objectified types 2022-02-25 20:04:33 +01:00
Gwenhael Le Moine
52480c0a7a
core → words; refactor types; test types 2022-02-25 15:43:48 +01:00
Gwenhael Le Moine
c89c832b96
[WIP] start to implement types as Objects 2022-02-24 16:48:31 +01:00
Gwenhael Le Moine
148366914e
readability 2022-02-24 16:45:45 +01:00
Gwenhael Le Moine
e2aee4ad22
commenting and formatting 2022-02-24 15:28:40 +01:00
Gwenhael Le Moine
541b1d650f
strings and lists are somewhat similar and words overlap 2022-02-24 15:27:11 +01:00
Gwenhael Le Moine
76729d556c
doesn't make sense here 2022-02-23 11:34:09 +01:00
Gwenhael Le Moine
7a95bf4826
implement WORDS .d .v .lv 2022-02-23 11:33:43 +01:00
Gwenhael Le Moine
0927f88fd9
implement DOLIST 2022-02-22 17:14:14 +01:00
Gwenhael Le Moine
e0b085bc8a
implement MANT 2022-02-22 16:38:42 +01:00
Gwenhael Le Moine
265b32423e
require bigdecimal 2022-02-22 15:54:53 +01:00
Gwenhael Le Moine
77afa709f4
allow comments, using '#' 2022-02-22 15:53:22 +01:00
Gwenhael Le Moine
1f62c632fd
parse numerics of all possible bases (0b, 0o, 0x, 0NNN_) 2022-02-22 15:33:36 +01:00
Gwenhael Le Moine
dec32d7f9b
fix eval'ing :string 2022-02-22 14:58:44 +01:00
Gwenhael Le Moine
0ad027a6b6
optimize eval and fix it for :list 2022-02-17 15:21:24 +01:00
Gwenhael Le Moine
f4fa29da5c
parser understands lists 2022-02-17 15:14:20 +01:00