Commit graph

94 commits

Author SHA1 Message Date
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
Gwenhael Le Moine
4ec3211b61
name test classes correctly 2021-11-23 13:00:42 +01:00
Gwenhael Le Moine
1e4dafb1d4
implements SQRT PREC DEFAULT TYPE TIME DATE TICKS 2021-11-18 15:44:09 +01:00
Gwenhael Le Moine
db02abb114
also EVAL names and words 2021-11-18 14:23:56 +01:00
Gwenhael Le Moine
cc99b517a7
fix EVAL test 2021-11-18 12:11:19 +01:00
Gwenhael Le Moine
18131d462d
implement EVAL 2021-11-18 12:00:02 +01:00
Gwenhael Le Moine
c7d4d22636
test + 2021-11-10 16:44:57 +01:00
Gwenhael Le Moine
0f924355ca
implement and test part of the language; exit using quit 2021-11-10 16:21:47 +01:00
Gwenhael Le Moine
ca315724ff
add runner and dictionary 2021-11-10 11:01:26 +01:00
Gwenhael Le Moine
26c75346a7
sanitize « and » 2021-11-09 22:03:39 +01:00
Gwenhael Le Moine
ff0aae8ece
pass all tests 2021-11-09 21:58:25 +01:00
Gwenhael Le Moine
a4cfed2cc4
[WIP] refactoring in classes, parsing 2021-11-09 16:50:01 +01:00
Gwenhael Le Moine
edccbf1bda
harmonization with Crystal syntax 2021-10-31 09:18:34 +01:00
Gwenhael Le Moine
67632c6fb4
unit-test parser ruby spec/parser_spec.rb <-n test_parse_input_word> 2021-10-30 23:37:15 +02:00