Commit graph

96 commits

Author SHA1 Message Date
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
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
Gwenhael Le Moine
9e91f407c2
split out parser 2021-10-30 23:36:49 +02:00
Gwenhael Le Moine
da2bd5241c
REPL; basic parsing 2021-10-30 19:27:15 +02:00
gwh
bbb2426757 Initial commit 2021-10-30 17:44:38 +02:00