Commit graph

107 commits

Author SHA1 Message Date
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
0c0bd2ea9f
more cleaning of botched merge 2022-02-02 16:15:04 +01:00
Gwenhael Le Moine
9619dba3cf
clean kludge from a merge 2022-02-02 15:48:21 +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
2cd462e2de
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-01-26 16:15:26 +01:00
Gwenhael Le Moine
88653b7bc1
TODO 2022-01-26 16:15:20 +01:00
Gwenhael Le Moine
212ef879f3
fix TODO 2022-01-26 16:15:12 +01:00
Gwenhael Le Moine
7a97361514
rpl code formatting 2022-01-20 11:56:38 +01:00
Gwenhael Le Moine
f8c36f9e41
pi → 𝛑 2022-01-20 10:55:13 +01:00
Gwenhael Le Moine
0e7fbcc341
source and string formatting 2022-01-18 22:30:34 +01:00
Gwenhael Le Moine
de89407e41
allow leading and closing empty lines and spaces before delimiters in
string and programs
2022-01-18 22:29:29 +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
442e1cc34e
infer numeric result's base from operand(s) 2022-01-18 17:06:43 +01:00
Gwenhael Le Moine
43b79a2927
add TODO-list to README 2022-01-18 17:06:13 +01:00
Gwenhael Le Moine
f1a2947e8e
review/rationalize ADD 2021-12-16 16:34:59 +01:00
Gwenhael Le Moine
b54f68d716
alias semantic 2021-12-16 15:22:55 +01:00
Gwenhael Le Moine
02db2cc6bf
DUP by copy instead of reference 2021-12-16 15:22:33 +01:00
Gwenhael Le Moine
3a0d7217b3
add __ppstack for debugging 2021-12-16 15:22:14 +01:00
Gwenhael Le Moine
3401f98eb9
implement →LIST and LIST→; display lists, REV and + lists 2021-12-16 15:21:23 +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
5dc798f830
remove \n before eval 2021-12-15 16:35:23 +01:00
Gwenhael Le Moine
90415fc07e
properly enclose strings in "" 2021-12-15 16:34:57 +01:00
Gwenhael Le Moine
f234dffa59
add FREAD 2021-12-15 13:33:52 +01:00
Gwenhael Le Moine
080bac161f
logic 2021-12-15 13:33:40 +01:00
Gwenhael Le Moine
59c40c5bf9
Rpl::Core ⇒ Rpl::Lang::Core 2021-12-15 13:33:06 +01:00
Gwenhael Le Moine
68c8a4e178
add string REV & SPLIT 2021-12-15 13:32:48 +01:00
Gwenhael Le Moine
a341cdf570
move loadgin core words in Language 2021-12-15 13:32:21 +01:00
Gwenhael Le Moine
413f98c964
if → case 2021-12-15 13:31:32 +01:00
Gwenhael Le Moine
9a08ce176f
useless code 2021-12-15 13:31:14 +01:00
Gwenhael Le Moine
5e0043879a
fix parsing " " word 2021-12-15 13:30:57 +01:00
Gwenhael Le Moine
96ffa142dc
moving comments 2021-12-09 17:03:33 +01:00
Gwenhael Le Moine
4f824fe900
new words ideas / todo 2021-12-09 16:32:33 +01:00
Gwenhael Le Moine
cbcaeea510
formatting 2021-12-09 16:32:19 +01:00
Gwenhael Le Moine
f3ca267a93
EVAL can eval anything 2021-12-09 16:32:03 +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
c49e79ae1c
s/_or_equal_than/_than_or_equal/g 2021-12-09 09:12:51 +01:00
Gwenhael Le Moine
464b1c511e
I prefer .lookup() rather than [] 2021-12-08 16:38:46 +01:00
Gwenhael Le Moine
50f36fa5c3
new alias 2021-12-08 16:38:31 +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
490dfa5583
INV result is a Float 2021-12-08 16:08:14 +01:00
Gwenhael Le Moine
e7532a3559
EVAL all the things!!! 2021-12-08 16:07:56 +01:00
Gwenhael Le Moine
dd8edd627d
better implementation leveraging CHS and INV 2021-12-08 16:07:16 +01:00
Gwenhael Le Moine
6b57d03627
trim "" from strings before use 2021-12-08 16:06:35 +01:00