Commit graph

157 commits

Author SHA1 Message Date
Gwenhael Le Moine
5d4c978c76
parse 5.0 as a Float 2021-12-08 16:06:10 +01:00
Gwenhael Le Moine
63da2d408b
moer aliases 2021-12-08 16:05:30 +01:00
Gwenhael Le Moine
6cc8fb0cd6
implement more words in pure Rpl 2021-12-08 13:46:06 +01:00
Gwenhael Le Moine
d9a4a13eb9
repl handles exceptions nicelier 2021-12-08 13:45:29 +01:00
Gwenhael Le Moine
f50528223c
comment not-yet-implemented words 2021-12-08 13:16:27 +01:00
Gwenhael Le Moine
9aba355ee6
not even sure we're ever going to implement EDIT 2021-12-08 13:15:52 +01:00
Gwenhael Le Moine
21b090aa9f
implement in pure Rpl 2021-12-08 13:15:33 +01:00
Gwenhael Le Moine
8ac18e6517
convert to Integer before using .times 2021-12-08 13:14:42 +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
169e5249db
format type's string correctly 2021-12-08 12:35:19 +01:00
Gwenhael Le Moine
e318296e29
all words expect ( stack, dictionary ) 2021-12-08 12:34:12 +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
c6fc0b3bc8
Rpl::Repl → RplRepl 2021-12-07 16:09:17 +01:00
Gwenhael Le Moine
ff48cef22a
split language and REPL; lib/language → lib/core 2021-12-07 16:03:03 +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
803036b89e
note alias for STO 2021-11-24 16:48:51 +01:00
Gwenhael Le Moine
b7d748ac5d
implement IFTE and IFT 2021-11-24 16:34:13 +01:00
Gwenhael Le Moine
a26c059394
implement test words (untested) 2021-11-24 16:09:57 +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
706f767aaa
parse 0xyz000 numbers 2021-11-23 16:54:23 +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
fe799845aa
remove Core.init, default precision is actually a default 2021-11-23 12:59:45 +01:00
Gwenhael Le Moine
655a14e36e
implement SIGN 2021-11-18 15:58:59 +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
847b32683d
move STACK block for readability 2021-11-18 11:58:40 +01:00
Gwenhael Le Moine
c7d4d22636
test + 2021-11-10 16:44:57 +01:00
Gwenhael Le Moine
41a9c8ec05
"implement" 'history', 'version' & 'uname' at repl level 2021-11-10 16:44:29 +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
94919db7a9
.odd? 2021-11-10 08:48:34 +01:00
Gwenhael Le Moine
a395136d15
todo 2021-11-09 23:14:42 +01:00
Gwenhael Le Moine
0f56ebadbf
Two-passes sanitizing and parsing 2021-11-09 23:09:07 +01:00
Gwenhael Le Moine
26c75346a7
sanitize « and » 2021-11-09 22:03:39 +01:00