5910345c08
operator-{sum,prod}.go: Fixed sum and prod operation with a fraction and a float
camoroso2024-05-06 17:32:39 +02:00
8b4dad1381
utils.go: new function isNumOrFract(x); it returns true if x is a float, an integer, ora a fraction
camoroso2024-05-06 17:31:12 +02:00
6ef468408c
operator-sum.go: Fixed sum of fraction and float
camoroso2024-05-06 17:16:30 +02:00
3a30d890c6
operator-assign.go: improvements that allow to define function aliases (TODO: maybe *funcDefFunctor else-if section can be removed
camoroso2024-05-06 16:01:50 +02:00
71ab417a56
funcs_test.go: added many new tests
camoroso2024-05-06 15:32:44 +02:00
5378952394
func-string.go: added three new functions (splitStr, startsWithStr, endsWithString) to the 'string' builtin module
camoroso2024-05-06 15:29:13 +02:00
a9d6a82011
operand-func.go: improved error report when functions reveive less params than expected
camoroso2024-05-06 15:26:45 +02:00
f55a48aa26
operator-dot.go: replaced []any with *ListType
camoroso2024-05-06 04:15:46 +02:00
434ddee733
operator-context.go: changed priPrePost with priIncDec
camoroso2024-05-06 04:14:54 +02:00
fcced6149f
operator-post-inc.go: changed priPrePost with priIncDec
camoroso2024-05-06 04:14:03 +02:00
1f0f9cae22
term.go: priPrePost renamed as priIncDec
camoroso2024-05-06 04:11:43 +02:00
1d8569d3a9
the function call procedure now check the number of actual parameters against the numer of formal parameters
camoroso2024-05-04 22:35:03 +02:00
0fdd51049d
parser.go: simplified the parser of the function parameters
camoroso2024-05-04 19:10:02 +02:00
f9ed5776cd
token.go: function IsSymbol()
camoroso2024-05-04 19:08:02 +02:00
a2c0a24494
added symbol '..' and '...'; improved some error reports in parser.go
camoroso2024-05-04 18:47:00 +02:00
2c5f02cc69
list iterators now support start, stop e step
camoroso2024-05-04 08:07:49 +02:00
d9fbe6f36d
data-cursor.go: now supports the 'index' command
camoroso2024-05-04 01:24:13 +02:00
e6174aca82
operator-length.go: now returns index+1 when used with iterators; that is the number of iterations
camoroso2024-05-04 01:23:32 +02:00
a736bba2c7
iter-list.go: now supports the 'index' command
camoroso2024-05-04 01:21:36 +02:00
7aabd068ed
func-math.go: add() now supports general iterators. TODO: do the same thing to mul()
camoroso2024-05-01 05:55:37 +02:00
924f5da725
Clone functions now filter ref variables to avoid to pass them to child context
camoroso2024-05-01 05:53:56 +02:00
d657cbb51e
func-os.go: fixed the handling of err==io.EOF
camoroso2024-05-01 05:48:37 +02:00
be874503ec
iterator.go: new error function errInvalidDataSource()
camoroso2024-05-01 05:46:24 +02:00
056d42d328
utils.go: Copy and Clone maps with filter function. Also added isIterator().
camoroso2024-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().
camoroso2024-04-28 06:45:20 +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.
camoroso2024-04-28 05:41:13 +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".
camoroso2024-04-28 04:44:19 +02:00
2ccbdb2254
Fixed Clean() and added error message when calling optional missing functions
camoroso2024-04-28 04:41:43 +02:00
c5fca70cfc
operator-length.go: Fix: the returned value was int, instead of int64
camoroso2024-04-27 22:37:56 +02:00
895778f236
operator-dot.go: '*dataCursor' case added; to be enhanced
camoroso2024-04-27 22:34:23 +02:00
81c85afbea
operand-iterator.go: accepts two new optional functions 'reset' and 'clean' from data-source
camoroso2024-04-27 22:32:57 +02:00
354cb79580
data-cursor.go: added Reset() e Clean() functions
camoroso2024-04-27 22:31:14 +02:00