This website requires JavaScript.
9c2eca40d7
utils.go: added IsBool() and IsFract()
Celestino Amoroso
2024-05-10 04:48:13 +0200
c3198e4c79
parser_test.go: did not show the correct section name
Celestino Amoroso
2024-05-10 04:47:34 +0200
99e0190b9c
operator-dot.go: fixed the index range checking
Celestino Amoroso
2024-05-10 04:45:51 +0200
d4f63a3837
funcs_test.go: fixed and extended
Celestino Amoroso
2024-05-10 04:44:08 +0200
389d48b646
func-base.go: added functions to check data-type of a value
Celestino Amoroso
2024-05-10 04:43:14 +0200
1f7b9131fc
The 'last' variable now also receives the value of the final expression
Celestino Amoroso
2024-05-10 04:41:26 +0200
dce49fd2b7
Doc: fractions and dictionaries
Celestino Amoroso
2024-05-09 07:20:22 +0200
8ee0bb5701
Some data-type check functions (e.g. IsInteger()) exported
v0.6.0
Celestino Amoroso
2024-05-08 07:53:01 +0200
b2b0bb04c5
formatter.go: number base options added
Celestino Amoroso
2024-05-08 07:51:38 +0200
f3abf5e77c
Doc: dev-expr description updated
Celestino Amoroso
2024-05-08 07:51:01 +0200
34b7799177
parser_test.go: test added (mixed number types)
Celestino Amoroso
2024-05-07 07:23:38 +0200
8c3c54913a
Doc: dev-expr introduction
Celestino Amoroso
2024-05-07 07:22:32 +0200
5910345c08
operator-{sum,prod}.go: Fixed sum and prod operation with a fraction and a float
Celestino Amoroso
2024-05-06 17:32:39 +0200
8b4dad1381
utils.go: new function isNumOrFract(x); it returns true if x is a float, an integer, ora a fraction
Celestino Amoroso
2024-05-06 17:31:12 +0200
6ef468408c
operator-sum.go: Fixed sum of fraction and float
Celestino Amoroso
2024-05-06 17:16:30 +0200
3a30d890c6
operator-assign.go: improvements that allow to define function aliases (TODO: maybe *funcDefFunctor else-if section can be removed
Celestino Amoroso
2024-05-06 16:01:50 +0200
71ab417a56
funcs_test.go: added many new tests
Celestino Amoroso
2024-05-06 15:32:44 +0200
7cfb89c25c
parser_test.go: removed commented code
Celestino Amoroso
2024-05-06 15:32:00 +0200
569dbfda9d
expr_test.go: removed temporary test
Celestino Amoroso
2024-05-06 15:31:28 +0200
f342dfe9f3
operand-list.go: ListType constructor functions newList() and newListA()
Celestino Amoroso
2024-05-06 15:30:23 +0200
5378952394
func-string.go: added three new functions (splitStr, startsWithStr, endsWithString) to the 'string' builtin module
Celestino Amoroso
2024-05-06 15:29:13 +0200
a9d6a82011
operand-func.go: improved error report when functions reveive less params than expected
Celestino Amoroso
2024-05-06 15:26:45 +0200
43b74131fb
dict_test.go: first draft
Celestino Amoroso
2024-05-06 10:41:08 +0200
cb0eac54b2
list_test.go: new tests on member access
Celestino Amoroso
2024-05-06 10:40:19 +0200
b219b55878
parser_test.go: refactored
Celestino Amoroso
2024-05-06 10:39:21 +0200
56c86f917e
funcs_test.go: Added Setenv("EXPR_PATH",".")
Celestino Amoroso
2024-05-06 10:38:45 +0200
539a4b44e9
new test files and some refactorings
Celestino Amoroso
2024-05-06 05:52:25 +0200
74df927179
func-import.go: renamed include() as importAll()
Celestino Amoroso
2024-05-06 05:50:36 +0200
510966c497
operator-insert.go: replaced []any with ListType
Celestino Amoroso
2024-05-06 04:43:29 +0200
c977e82d9e
doc/Expr.adoc: description of the selector operator; added operators to the priority table
Celestino Amoroso
2024-05-06 04:24:17 +0200
903f1ae1ce
adjusted some error messages and added the section name in logs
Celestino Amoroso
2024-05-06 04:21:50 +0200
9c66056c18
func-math.go: improved error messages reporting wrong datatype of items
Celestino Amoroso
2024-05-06 04:18:04 +0200
f55a48aa26
operator-dot.go: replaced []any with *ListType
Celestino Amoroso
2024-05-06 04:15:46 +0200
434ddee733
operator-context.go: changed priPrePost with priIncDec
Celestino Amoroso
2024-05-06 04:14:54 +0200
fcced6149f
operator-post-inc.go: changed priPrePost with priIncDec
Celestino Amoroso
2024-05-06 04:14:03 +0200
1f0f9cae22
term.go: priPrePost renamed as priIncDec
Celestino Amoroso
2024-05-06 04:11:43 +0200
1d8569d3a9
the function call procedure now check the number of actual parameters against the numer of formal parameters
Celestino Amoroso
2024-05-04 22:35:03 +0200
0fdd51049d
parser.go: simplified the parser of the function parameters
Celestino Amoroso
2024-05-04 19:10:02 +0200
f9ed5776cd
token.go: function IsSymbol()
Celestino Amoroso
2024-05-04 19:08:02 +0200
a2c0a24494
added symbol '..' and '...'; improved some error reports in parser.go
Celestino Amoroso
2024-05-04 18:47:00 +0200
2c5f02cc69
list iterators now support start, stop e step
Celestino Amoroso
2024-05-04 08:07:49 +0200
d9fbe6f36d
data-cursor.go: now supports the 'index' command
Celestino Amoroso
2024-05-04 01:24:13 +0200
e6174aca82
operator-length.go: now returns index+1 when used with iterators; that is the number of iterations
Celestino Amoroso
2024-05-04 01:23:32 +0200
a736bba2c7
iter-list.go: now supports the 'index' command
Celestino Amoroso
2024-05-04 01:21:36 +0200
7724cabdcc
removed commented code
Celestino Amoroso
2024-05-04 00:57:21 +0200
16557d70de
the iterator operator now can be defined providing values or a list of values directly
Celestino Amoroso
2024-05-04 00:51:15 +0200
04e71a1b3f
operator-iter-value.go: now operates on Iterator instead of *dataCursor
Celestino Amoroso
2024-05-04 00:47:20 +0200
e463bd61d8
operator-post-inc.go: now operates on Iterator instead of *dataCursor
Celestino Amoroso
2024-05-04 00:39:22 +0200
419af7bfea
data-cursor.go: reset and clean operations return (bool,error)
Celestino Amoroso
2024-05-04 00:37:31 +0200
6c604812ee
iter-list.go: implemntation of the ExtInterface and coperation reset
Celestino Amoroso
2024-05-04 00:35:27 +0200
5cf0bfbad4
func-math.go: use of ExtIterator to perform clean operation
Celestino Amoroso
2024-05-04 00:33:38 +0200
a838361ea8
operator-dot.go: specific *dataCursor case replaced by general ExtIterator
Celestino Amoroso
2024-05-04 00:30:35 +0200
0dbb0ba515
iterator.go: new interface ExtIterator derived from Iterator
Celestino Amoroso
2024-05-04 00:28:17 +0200
7a0ba26aa3
some expression and data files used by tests
Celestino Amoroso
2024-05-03 08:48:29 +0200
0bca3333aa
parser_test.go: added tests from 143 to 159 (global coverage is 74.4%)
Celestino Amoroso
2024-05-03 06:38:30 +0200
02b7a6df6c
improved the string representation of the content
Celestino Amoroso
2024-05-03 06:33:47 +0200
8d9963207e
operator-context.go: now supports contextes that implement the Formatter interface
Celestino Amoroso
2024-05-03 06:31:36 +0200
f9486fa1bd
operand-list.go: adding of String() function
Celestino Amoroso
2024-05-03 06:29:18 +0200
360ebce015
improved usability of the list iterator
Celestino Amoroso
2024-05-03 06:26:17 +0200
dc9eca83e8
operator-builtin.go: Fixed a problem with the list of forms due to changing []any in ListType
Celestino Amoroso
2024-05-03 05:30:58 +0200
2c55167dd0
operator-fraction.go: the constructor newFraction() does call simplifyIntegers() on the num e den
Celestino Amoroso
2024-05-02 11:04:20 +0200
c124e880c4
operator-context.go: now it returns function keys too
Celestino Amoroso
2024-05-02 11:02:01 +0200
4db015e4b1
func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul()
Celestino Amoroso
2024-05-02 10:58:05 +0200
5809de419f
func-math.go: mul() and add() now support fractions
Celestino Amoroso
2024-05-01 21:53:54 +0200
7c748f0e31
formatter.go: format options added
Celestino Amoroso
2024-05-01 21:53:03 +0200
cd6b7982ee
sum and prod now support fraction too
Celestino Amoroso
2024-05-01 21:51:43 +0200
e00886b1ed
operator-fraction.go: many new functions supporting fraction operations
Celestino Amoroso
2024-05-01 21:49:15 +0200
49904f9097
the new ListType type takes the of []any
Celestino Amoroso
2024-05-01 21:47:27 +0200
2d0d03b975
utils.go: numAsFloat() now supports also fraction
Celestino Amoroso
2024-05-01 21:44:55 +0200
8cb048edb0
common-type-names.go: typeFraction added
Celestino Amoroso
2024-05-01 21:43:42 +0200
cb3d8827fa
operator-fraction.go -- new data-type and operator fraction
Celestino Amoroso
2024-05-01 09:48:09 +0200
4c83764332
term.go: priFraction added
Celestino Amoroso
2024-05-01 09:47:28 +0200
c0c2ab8b4e
func-bolerplate.bash: generate Go source for a new functions module
Celestino Amoroso
2024-05-01 07:13:52 +0200
288e93d708
func-string.go: string utils module
Celestino Amoroso
2024-05-01 07:10:59 +0200
92e862da19
common definitions collections
Celestino Amoroso
2024-05-01 07:10:11 +0200
dc6975e56c
term.go: better error message in term.toInt()
Celestino Amoroso
2024-05-01 07:09:18 +0200
6a2d3c53fd
func-common.go common-errors.go
Celestino Amoroso
2024-05-01 07:09:01 +0200
5643a57bcc
utils.go: new function toInt() converts any(int64) to int
Celestino Amoroso
2024-05-01 07:07:36 +0200
52fb398cd8
data-cursor.go: deep changes to better handle the data-source
Celestino Amoroso
2024-05-01 05:59:54 +0200
cdbe3dfc22
commented tracing code
Celestino Amoroso
2024-05-01 05:57:08 +0200
7aabd068ed
func-math.go: add() now supports general iterators. TODO: do the same thing to mul()
Celestino Amoroso
2024-05-01 05:55:37 +0200
924f5da725
Clone functions now filter ref variables to avoid to pass them to child context
Celestino Amoroso
2024-05-01 05:53:56 +0200
d657cbb51e
func-os.go: fixed the handling of err==io.EOF
Celestino Amoroso
2024-05-01 05:48:37 +0200
be874503ec
iterator.go: new error function errInvalidDataSource()
Celestino Amoroso
2024-05-01 05:46:24 +0200
056d42d328
utils.go: Copy and Clone maps with filter function. Also added isIterator().
Celestino Amoroso
2024-05-01 05:45:10 +0200
aa66d07caa
Iterators now support generic operation interface based on methods HasOperation() and CallOperation(). Also fixed mul() function that called doAdd() instead of doMul().
Celestino Amoroso
2024-04-28 06:45:20 +0200
fc0e1ffaee
New function isFunctor()
Celestino Amoroso
2024-04-28 06:43:57 +0200
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.
Celestino Amoroso
2024-04-28 05:41:13 +0200
6dd8283308
function-register.go module-register.go
Celestino Amoroso
2024-04-28 04:52:02 +0200
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".
Celestino Amoroso
2024-04-28 04:44:19 +0200
2ccbdb2254
Fixed Clean() and added error message when calling optional missing functions
Celestino Amoroso
2024-04-28 04:41:43 +0200
c5fca70cfc
operator-length.go: Fix: the returned value was int, instead of int64
Celestino Amoroso
2024-04-27 22:37:56 +0200
895778f236
operator-dot.go: '*dataCursor' case added; to be enhanced
Celestino Amoroso
2024-04-27 22:34:23 +0200
81c85afbea
operand-iterator.go: accepts two new optional functions 'reset' and 'clean' from data-source
Celestino Amoroso
2024-04-27 22:32:57 +0200
354cb79580
data-cursor.go: added Reset() e Clean() functions
Celestino Amoroso
2024-04-27 22:31:14 +0200
327bffa01f
symbol.go: typo
Celestino Amoroso
2024-04-27 22:30:18 +0200
c99be491df
operator-dot.go: refactoring
Celestino Amoroso
2024-04-27 14:44:52 +0200
60effe8f1b
new prefix operator 'include'
Celestino Amoroso
2024-04-27 09:48:45 +0200
824b9382be
termo.go: changed the name of a variable
Celestino Amoroso
2024-04-27 09:48:05 +0200
9ce6b7255b
corrected a comment
Celestino Amoroso
2024-04-27 09:47:24 +0200