Commit Graph

197 Commits

Author SHA1 Message Date
e6174aca82 operator-length.go: now returns index+1 when used with iterators; that is the number of iterations 2024-05-04 01:23:32 +02:00
a736bba2c7 iter-list.go: now supports the 'index' command 2024-05-04 01:21:36 +02:00
7724cabdcc removed commented code 2024-05-04 00:57:21 +02:00
16557d70de the iterator operator now can be defined providing values or a list of values directly 2024-05-04 00:51:15 +02:00
04e71a1b3f operator-iter-value.go: now operates on Iterator instead of *dataCursor 2024-05-04 00:47:20 +02:00
e463bd61d8 operator-post-inc.go: now operates on Iterator instead of *dataCursor 2024-05-04 00:39:22 +02:00
419af7bfea data-cursor.go: reset and clean operations return (bool,error) 2024-05-04 00:37:31 +02:00
6c604812ee iter-list.go: implemntation of the ExtInterface and coperation reset 2024-05-04 00:35:27 +02:00
5cf0bfbad4 func-math.go: use of ExtIterator to perform clean operation 2024-05-04 00:33:38 +02:00
a838361ea8 operator-dot.go: specific *dataCursor case replaced by general ExtIterator 2024-05-04 00:30:35 +02:00
0dbb0ba515 iterator.go: new interface ExtIterator derived from Iterator 2024-05-04 00:28:17 +02:00
7a0ba26aa3 some expression and data files used by tests 2024-05-03 08:48:29 +02:00
0bca3333aa parser_test.go: added tests from 143 to 159 (global coverage is 74.4%) 2024-05-03 06:38:30 +02:00
02b7a6df6c improved the string representation of the content 2024-05-03 06:33:47 +02:00
8d9963207e operator-context.go: now supports contextes that implement the Formatter interface 2024-05-03 06:31:36 +02:00
f9486fa1bd operand-list.go: adding of String() function 2024-05-03 06:29:18 +02:00
360ebce015 improved usability of the list iterator 2024-05-03 06:26:17 +02:00
dc9eca83e8 operator-builtin.go: Fixed a problem with the list of forms due to changing []any in ListType 2024-05-03 05:30:58 +02:00
2c55167dd0 operator-fraction.go: the constructor newFraction() does call simplifyIntegers() on the num e den 2024-05-02 11:04:20 +02:00
c124e880c4 operator-context.go: now it returns function keys too 2024-05-02 11:02:01 +02:00
4db015e4b1 func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul() 2024-05-02 10:58:05 +02:00
5809de419f func-math.go: mul() and add() now support fractions 2024-05-01 21:53:54 +02:00
7c748f0e31 formatter.go: format options added 2024-05-01 21:53:03 +02:00
cd6b7982ee sum and prod now support fraction too 2024-05-01 21:51:43 +02:00
e00886b1ed operator-fraction.go: many new functions supporting fraction operations 2024-05-01 21:49:15 +02:00
49904f9097 the new ListType type takes the of []any 2024-05-01 21:47:27 +02:00
2d0d03b975 utils.go: numAsFloat() now supports also fraction 2024-05-01 21:44:55 +02:00
8cb048edb0 common-type-names.go: typeFraction added 2024-05-01 21:43:42 +02:00
cb3d8827fa operator-fraction.go -- new data-type and operator fraction 2024-05-01 09:48:09 +02:00
4c83764332 term.go: priFraction added 2024-05-01 09:47:28 +02:00
c0c2ab8b4e func-bolerplate.bash: generate Go source for a new functions module 2024-05-01 07:13:52 +02:00
288e93d708 func-string.go: string utils module 2024-05-01 07:10:59 +02:00
92e862da19 common definitions collections 2024-05-01 07:10:11 +02:00
dc6975e56c term.go: better error message in term.toInt() 2024-05-01 07:09:18 +02:00
6a2d3c53fd func-common.go common-errors.go 2024-05-01 07:09:01 +02:00
5643a57bcc utils.go: new function toInt() converts any(int64) to int 2024-05-01 07:07:36 +02:00
52fb398cd8 data-cursor.go: deep changes to better handle the data-source 2024-05-01 05:59:54 +02:00
cdbe3dfc22 commented tracing code 2024-05-01 05:57:08 +02:00
7aabd068ed func-math.go: add() now supports general iterators. TODO: do the same thing to mul() 2024-05-01 05:55:37 +02:00
924f5da725 Clone functions now filter ref variables to avoid to pass them to child context 2024-05-01 05:53:56 +02:00
d657cbb51e func-os.go: fixed the handling of err==io.EOF 2024-05-01 05:48:37 +02:00
be874503ec iterator.go: new error function errInvalidDataSource() 2024-05-01 05:46:24 +02:00
056d42d328 utils.go: Copy and Clone maps with filter function. Also added isIterator(). 2024-05-01 05:45:10 +02:00
aa66d07caa Iterators now support generic operation interface based on methods HasOperation() and CallOperation().
Also fixed mul() function that called doAdd() instead of doMul().
2024-04-28 06:45:39 +02:00
fc0e1ffaee New function isFunctor() 2024-04-28 06:43:57 +02:00
bf8f1a175f modules are now represented by a struct that holds import-function, module description and importa status.
It is also available the new function IterateModules() to explore all modules.
2024-04-28 05:41:13 +02:00
6dd8283308 function-register.go module-register.go 2024-04-28 04:52:02 +02:00
06ab303b9e accessing to the Reset() and Clean()functions of an iterator is now done by identifiers, i.e. reset, not by string, i.e. "reset". 2024-04-28 04:44:19 +02:00
2ccbdb2254 Fixed Clean() and added error message when calling optional missing functions 2024-04-28 04:41:43 +02:00
c5fca70cfc operator-length.go: Fix: the returned value was int, instead of int64 2024-04-27 22:37:56 +02:00