Gwenhael Le Moine
|
e27f829ff3
|
numerals formatting in sync with rpn-2.4
|
2022-03-02 14:03:02 +01:00 |
|
Gwenhael Le Moine
|
159a963490
|
wrapper around object creation
|
2022-02-28 11:40:47 +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
|
541b1d650f
|
strings and lists are somewhat similar and words overlap
|
2022-02-24 15:27:11 +01:00 |
|
Gwenhael Le Moine
|
e0b085bc8a
|
implement MANT
|
2022-02-22 16:38:42 +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
|
f4fa29da5c
|
parser understands lists
|
2022-02-17 15:14:20 +01:00 |
|
Gwenhael Le Moine
|
7fce85d694
|
switch from test-unit to minitest
|
2022-02-17 15:09:29 +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
|
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
|
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
|
717e04549e
|
test core.stringify
|
2022-02-09 16:35:17 +01:00 |
|
Gwenhael Le Moine
|
7d1a91705b
|
indentation
|
2022-02-09 16:35:11 +01:00 |
|
Gwenhael Le Moine
|
9ebdb707c5
|
parser a static method of Interpreter
|
2022-02-09 16:33:47 +01:00 |
|
Gwenhael Le Moine
|
6dae5e3eb0
|
refactoring: inline parser & runner into Interpreter
|
2022-02-09 13:38:32 +01:00 |
|
Gwenhael Le Moine
|
3158851685
|
finally pass d→r test
|
2022-02-09 10:58:13 +01:00 |
|
Gwenhael Le Moine
|
36283d6d4b
|
generalize use of BigDecimal in :numeric's
|
2022-02-09 10:53:00 +01:00 |
|
Gwenhael Le Moine
|
8c5657db42
|
big refactoring
|
2022-02-08 15:45:36 +01:00 |
|
Gwenhael Le Moine
|
96868a742f
|
add BigDecimal todo
|
2022-02-02 16:42:19 +01:00 |
|
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
|
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
|
212ef879f3
|
fix TODO
|
2022-01-26 16:15:12 +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
|
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 |
|