Commit graph

140 commits

Author SHA1 Message Date
Gwenhael Le Moine
2a005112be
catching up to rpn-2.4.x: date & time return iso8601 parts 2022-03-08 12:40:14 +01:00
Gwenhael Le Moine
f3a0d7e91e
0.7.1: fix numeric parsing not using BigDecimal 2022-03-02 14:27:35 +01:00
Gwenhael Le Moine
7290d80046
0.7.0 2022-03-02 14:06:26 +01:00
Gwenhael Le Moine
e7ebbbee56
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-03-02 14:03:13 +01:00
Gwenhael Le Moine
e27f829ff3
numerals formatting in sync with rpn-2.4 2022-03-02 14:03:02 +01:00
Gwenhael Le Moine
9c29599fb7
STO{+,-,/,*} follow semantic of rpn-2.4 2022-03-01 21:53:43 +01:00
Gwenhael Le Moine
92bd286f71
implement EDIT 2022-02-28 11:41:56 +01:00
Gwenhael Le Moine
5c1cc3e617
better map 2022-02-28 11:41:39 +01:00
Gwenhael Le Moine
159a963490
wrapper around object creation 2022-02-28 11:40:47 +01:00
Gwenhael Le Moine
6219323661
avoid circular requiring 2022-02-26 20:51:09 +01:00
Gwenhael Le Moine
2515bbd90c
only run programs 2022-02-26 19:57:38 +01:00
Gwenhael Le Moine
fcb809d797
[WIP] almost there 2022-02-26 18:53:39 +01:00
Gwenhael Le Moine
e9dbfbdfd8
new parser based on objectified types 2022-02-25 20:04:33 +01:00
Gwenhael Le Moine
52480c0a7a
core → words; refactor types; test types 2022-02-25 15:43:48 +01:00
Gwenhael Le Moine
c89c832b96
[WIP] start to implement types as Objects 2022-02-24 16:48:31 +01:00
Gwenhael Le Moine
148366914e
readability 2022-02-24 16:45:45 +01:00
Gwenhael Le Moine
e2aee4ad22
commenting and formatting 2022-02-24 15:28:40 +01:00
Gwenhael Le Moine
541b1d650f
strings and lists are somewhat similar and words overlap 2022-02-24 15:27:11 +01:00
Gwenhael Le Moine
76729d556c
doesn't make sense here 2022-02-23 11:34:09 +01:00
Gwenhael Le Moine
7a95bf4826
implement WORDS .d .v .lv 2022-02-23 11:33:43 +01:00
Gwenhael Le Moine
0927f88fd9
implement DOLIST 2022-02-22 17:14:14 +01:00
Gwenhael Le Moine
e0b085bc8a
implement MANT 2022-02-22 16:38:42 +01:00
Gwenhael Le Moine
265b32423e
require bigdecimal 2022-02-22 15:54:53 +01:00
Gwenhael Le Moine
77afa709f4
allow comments, using '#' 2022-02-22 15:53:22 +01:00
Gwenhael Le Moine
1f62c632fd
parse numerics of all possible bases (0b, 0o, 0x, 0NNN_) 2022-02-22 15:33:36 +01:00
Gwenhael Le Moine
dec32d7f9b
fix eval'ing :string 2022-02-22 14:58:44 +01:00
Gwenhael Le Moine
0ad027a6b6
optimize eval and fix it for :list 2022-02-17 15:21:24 +01:00
Gwenhael Le Moine
f4fa29da5c
parser understands lists 2022-02-17 15:14:20 +01:00
Gwenhael Le Moine
dc5159cf11
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-02-16 16:25:14 +01:00
Gwenhael Le Moine
603a1627df
RPL's lists are enclosed in {} 2022-02-16 16:21:37 +01:00
Gwenhael Le Moine
42244c7106
Merge branch 'trunk' of ssh://src.le-moine.org:38172/gwh/rpl.rb into trunk 2022-02-15 18:48:27 +01:00
Gwenhael Le Moine
df32808ae0
xpon 2022-02-15 18:48:19 +01:00
Gwenhael Le Moine
8b07724e50
make it a gem 2022-02-15 17:06:19 +01:00
Gwenhael Le Moine
fece818539
dangling lines 2022-02-15 11:15:10 +01:00
Gwenhael Le Moine
8f1f871904
continue to prepare implementation 2022-02-11 16:30:49 +01:00
Gwenhael Le Moine
a704d57a4f
prepare implementation 2022-02-11 16:15:38 +01:00
Gwenhael Le Moine
2eb8fa91ef
logs → logarithm 2022-02-11 16:15:01 +01:00
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
80fbf082b2
fix stack_extract 2022-02-10 18:37:44 +01:00
Gwenhael Le Moine
e9e44f7d69
extracting from stack in 2 steps to leave stack intact in case of error 2022-02-10 14:57:14 +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
195ebb37b7
implement HELP 2022-02-09 16:38:09 +01:00
Gwenhael Le Moine
6e77c313b2
implement VERSION and UNAME 2022-02-09 16:35:54 +01:00
Gwenhael Le Moine
9ebdb707c5
parser a static method of Interpreter 2022-02-09 16:33:47 +01:00
Gwenhael Le Moine
b98a97b6b8
all :numerics need to be BigDecimal 2022-02-09 16:29:01 +01:00
Gwenhael Le Moine
922ecf1bb6
stringify infinites and NaN 2022-02-09 16:28:35 +01:00
Gwenhael Le Moine
4413146f52
version 0.1 2022-02-09 16:28:07 +01:00
Gwenhael Le Moine
6dae5e3eb0
refactoring: inline parser & runner into Interpreter 2022-02-09 13:38:32 +01:00