Commit graph

63 commits

Author SHA1 Message Date
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
Gwenhael Le Moine
8bd4055f90
implement trig operations 2022-01-18 17:07:25 +01:00
Gwenhael Le Moine
f1a2947e8e
review/rationalize ADD 2021-12-16 16:34:59 +01:00
Gwenhael Le Moine
f27f485c8c
implement FWRITE, test FEVAL too 2021-12-16 11:02:42 +01:00
Gwenhael Le Moine
2c9203f079
implement FEVAL & FWRITE (wip) 2021-12-15 16:36:11 +01:00
Gwenhael Le Moine
90415fc07e
properly enclose strings in "" 2021-12-15 16:34:57 +01:00
Gwenhael Le Moine
68c8a4e178
add string REV & SPLIT 2021-12-15 13:32:48 +01:00
Gwenhael Le Moine
5e0043879a
fix parsing " " word 2021-12-15 13:30:57 +01:00
Gwenhael Le Moine
dca6825602
add and implement LOOP and TIMES loops 2021-12-09 16:31:29 +01:00
Gwenhael Le Moine
88effd8dfa
test using alias 2021-12-09 16:30:52 +01:00
Gwenhael Le Moine
f123cd152c
test test 2021-12-09 09:13:17 +01:00
Gwenhael Le Moine
464b1c511e
I prefer .lookup() rather than [] 2021-12-08 16:38:46 +01:00
Gwenhael Le Moine
1ddccc3eee
all tests use lang.run() instead of handcrafted stacks 2021-12-08 16:08:49 +01:00
Gwenhael Le Moine
53e1614081
test IFT explicitly 2021-12-08 13:14:09 +01:00
Gwenhael Le Moine
8816e6ce32
implement store.* (STO, RCL, PURGE, ...) 2021-12-08 12:46:57 +01:00
Gwenhael Le Moine
300e061beb
[WIP] store 2021-12-07 16:51:33 +01:00
Gwenhael Le Moine
67a4213eb4
all words take and return stack & dictionary 2021-12-07 16:46:33 +01:00
Gwenhael Le Moine
c13692c030
fix merge 2021-12-07 16:19:23 +01:00
Gwenhael Le Moine
d537087088
merge
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2021-12-07 16:17:28 +01:00
Gwenhael Le Moine
cfcbcc7ce5
Rpl:: → Rpl::Lang:: 2021-12-07 15:50:58 +01:00
Gwenhael Le Moine
ca6b79a8ad
implement pi, e and some operations 2021-12-02 15:33:22 +01:00
Gwenhael Le Moine
b7d748ac5d
implement IFTE and IFT 2021-11-24 16:34:13 +01:00
Gwenhael Le Moine
09c44b684d
implement string words 2021-11-24 15:04:56 +01:00
Gwenhael Le Moine
ac7cab6490
fix parsing error on program-closer » 2021-11-24 15:04:27 +01:00
Gwenhael Le Moine
395406d516
fix the fix 2021-11-24 13:53:41 +01:00
Gwenhael Le Moine
42f02e8e94
fix stack_extract test 2021-11-24 13:52:32 +01:00
Gwenhael Le Moine
8e7c50fc66
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpn.rb into trunk 2021-11-24 13:48:22 +01:00
Gwenhael Le Moine
3809c4b58b
reverse extracted stack order to match needs, +String 2021-11-24 13:33:44 +01:00
Gwenhael Le Moine
e114a05207
test (some of) core 2021-11-23 21:03:17 +01:00
Gwenhael Le Moine
e2abe0899c
implement BASE&co, store numeric's base and adapt display 2021-11-23 16:16:21 +01:00
Gwenhael Le Moine
66f622ac68
[refactoring] rename to Rpl; unsplit core 2021-11-23 13:10:03 +01:00
Gwenhael Le Moine
95e2419931
test all implemented operations 2021-11-23 13:01:17 +01:00