Commit Graph

222 Commits

Author SHA1 Message Date
7cfb89c25c parser_test.go: removed commented code 2024-05-06 15:32:00 +02:00
569dbfda9d expr_test.go: removed temporary test 2024-05-06 15:31:28 +02:00
f342dfe9f3 operand-list.go: ListType constructor functions newList() and newListA() 2024-05-06 15:30:23 +02:00
5378952394 func-string.go: added three new functions (splitStr, startsWithStr, endsWithString) to the 'string' builtin module 2024-05-06 15:29:13 +02:00
a9d6a82011 operand-func.go: improved error report when functions reveive less params than expected 2024-05-06 15:26:45 +02:00
43b74131fb dict_test.go: first draft 2024-05-06 10:41:08 +02:00
cb0eac54b2 list_test.go: new tests on member access 2024-05-06 10:40:19 +02:00
b219b55878 parser_test.go: refactored 2024-05-06 10:39:21 +02:00
56c86f917e funcs_test.go: Added Setenv("EXPR_PATH",".") 2024-05-06 10:38:45 +02:00
539a4b44e9 new test files and some refactorings 2024-05-06 05:52:25 +02:00
74df927179 func-import.go: renamed include() as importAll() 2024-05-06 05:50:36 +02:00
510966c497 operator-insert.go: replaced []any with ListType 2024-05-06 04:43:29 +02:00
c977e82d9e doc/Expr.adoc: description of the selector operator; added operators to the priority table 2024-05-06 04:24:27 +02:00
903f1ae1ce adjusted some error messages and added the section name in logs 2024-05-06 04:21:50 +02:00
9c66056c18 func-math.go: improved error messages reporting wrong datatype of items 2024-05-06 04:18:04 +02:00
f55a48aa26 operator-dot.go: replaced []any with *ListType 2024-05-06 04:15:46 +02:00
434ddee733 operator-context.go: changed priPrePost with priIncDec 2024-05-06 04:14:54 +02:00
fcced6149f operator-post-inc.go: changed priPrePost with priIncDec 2024-05-06 04:14:03 +02:00
1f0f9cae22 term.go: priPrePost renamed as priIncDec 2024-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 2024-05-04 22:35:03 +02:00
0fdd51049d parser.go: simplified the parser of the function parameters 2024-05-04 19:10:02 +02:00
f9ed5776cd token.go: function IsSymbol() 2024-05-04 19:08:02 +02:00
a2c0a24494 added symbol '..' and '...'; improved some error reports in parser.go 2024-05-04 18:47:00 +02:00
2c5f02cc69 list iterators now support start, stop e step 2024-05-04 08:07:49 +02:00
d9fbe6f36d data-cursor.go: now supports the 'index' command 2024-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 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