Commit graph

94 commits

Author SHA1 Message Date
Gwenhael Le Moine
650d15b830
s/MiniTest/Minitest/g
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2024-03-27 08:08:43 +01:00
Gwenhael Le Moine
3666c19602
made a pass with rubocop
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2023-01-05 15:17:19 +01:00
Gwenhael Le Moine
8cfb5ce26a
add a Ruby-esque ! suffix to some methods 2022-10-12 17:04:50 +02:00
Gwenhael Le Moine
339b64486e
test logarithm words (only 'e' for the moment) 2022-10-04 14:12:48 +02:00
Gwenhael Le Moine
36ba5fa297
test list operations 2022-08-31 13:19:35 +02:00
Gwenhael Le Moine
6562a4297e
basic tests of complexes' operations 2022-08-31 13:05:26 +02:00
Gwenhael Le Moine
7a5e3bf262
renamed words spec files 2022-08-31 12:20:27 +02:00
Gwenhael Le Moine
db0d8cb5a9
[bug] fix variable overwriting bug 2022-08-30 14:35:13 +02: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
9eb17e6555
fix time's test 2022-03-09 13:20:34 +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
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
240cf0ea56
indentation 2022-03-01 21:54:39 +01:00
Gwenhael Le Moine
9c29599fb7
STO{+,-,/,*} follow semantic of rpn-2.4 2022-03-01 21:53:43 +01:00
Gwenhael Le Moine
159a963490
wrapper around object creation 2022-02-28 11:40:47 +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
541b1d650f
strings and lists are somewhat similar and words overlap 2022-02-24 15:27:11 +01:00
Gwenhael Le Moine
e0b085bc8a
implement MANT 2022-02-22 16:38:42 +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
f4fa29da5c
parser understands lists 2022-02-17 15:14:20 +01:00
Gwenhael Le Moine
7fce85d694
switch from test-unit to minitest 2022-02-17 15:09:29 +01:00
Gwenhael Le Moine
42244c7106
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-02-15 18:48:27 +01:00
Gwenhael Le Moine
df32808ae0
xpon 2022-02-15 18:48:19 +01:00
Gwenhael Le Moine
8b07724e50
make it a gem 2022-02-15 17:06:19 +01:00
Gwenhael Le Moine
0f09f57f5d
change semantic of TIMES and LOOP 2022-02-11 16:06:57 +01:00
Gwenhael Le Moine
2d94127444
refactoring, make comment active documentation 2022-02-11 15:46:47 +01:00
Gwenhael Le Moine
b8724a4a1c
refactoring: split interpreter 2022-02-10 14:50:59 +01:00
Gwenhael Le Moine
3ebec3e4b0
biggest refactoring, OOP 2022-02-10 14:33:09 +01:00
Gwenhael Le Moine
717e04549e
test core.stringify 2022-02-09 16:35:17 +01:00
Gwenhael Le Moine
7d1a91705b
indentation 2022-02-09 16:35:11 +01:00
Gwenhael Le Moine
9ebdb707c5
parser a static method of Interpreter 2022-02-09 16:33:47 +01:00
Gwenhael Le Moine
6dae5e3eb0
refactoring: inline parser & runner into Interpreter 2022-02-09 13:38:32 +01:00
Gwenhael Le Moine
3158851685
finally pass d→r test 2022-02-09 10:58:13 +01:00
Gwenhael Le Moine
36283d6d4b
generalize use of BigDecimal in :numeric's 2022-02-09 10:53:00 +01:00
Gwenhael Le Moine
8c5657db42
big refactoring 2022-02-08 15:45:36 +01:00
Gwenhael Le Moine
96868a742f
add BigDecimal todo 2022-02-02 16:42:19 +01:00
Gwenhael Le Moine
a512979e91
simplify D→R and R→D, fix R→D test 2022-02-02 16:29:23 +01:00
Gwenhael Le Moine
77946e56f7
fix ACOS and pass some tests (still fragile) 2022-02-02 16:15:44 +01:00
Gwenhael Le Moine
a8dec5f2a4
implement LSTO 2022-02-02 15:20:24 +01:00
Gwenhael Le Moine
e96c3f94de
usr %w[] 2022-02-02 15:19:14 +01:00
Gwenhael Le Moine
6907e8b9dc
don't store surrounding '' "" «» in value, eliminate [1..-2] in value use 2022-01-26 18:30:51 +01:00
Gwenhael Le Moine
212ef879f3
fix TODO 2022-01-26 16:15:12 +01:00
Gwenhael Le Moine
3e53cb9715
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-01-18 17:11:38 +01:00