Commit Graph

  • 315f5b22d3 data-cursor.go: the inizialization of the current item is done in the Next() method. This allows the application of the filter and map operator to the first item too. v0.24.1 camoroso 2024-07-23 05:46:37 +02:00
  • dfae593e86 operand-iterator.go: removed commented code camoroso 2024-07-21 16:35:13 +02:00
  • d572f3a129 Iterator: new function Count() camoroso 2024-07-21 16:34:52 +02:00
  • c461fd138e Iterator defined by data-source now only requires one method: next() camoroso 2024-07-21 05:45:22 +02:00
  • 6ecbe2feb1 Fixed type (expcted -> expected) camoroso 2024-07-21 05:43:55 +02:00
  • 80d3c6ec7d parser.go: Fixed an old bug that did not allow the parser to skip comment tokens camoroso 2024-07-21 05:37:34 +02:00
  • e09806c716 %q replaced by %s in some error messages camoroso 2024-07-21 05:33:06 +02:00
  • 1a772597cb removed/commented unused code camoroso 2024-07-19 17:03:03 +02:00
  • 33b3e1fc29 New function for searching and importing plugin camoroso 2024-07-19 15:37:00 +02:00
  • 4e3f5cfbc6 import-utils.go: Paths are now expanded with respect to env-vars and shell ~ camoroso 2024-07-19 15:33:15 +02:00
  • e35d4e3f70 utils.go: added function ExpandPath camoroso 2024-07-19 15:30:26 +02:00
  • b4529499d6 iterator.go: exported some const identifier camoroso 2024-07-18 07:27:02 +02:00
  • 7745dc24e2 dict-type.go: exported NewDataCursor camoroso 2024-07-18 07:25:51 +02:00
  • be25385d02 builtin-iterator: changed status variable from 'it_status' to 'status' camoroso 2024-07-15 06:59:13 +02:00
  • 79889cd8e1 New builtin module 'iterator' v0.24.0 camoroso 2024-07-14 16:53:32 +02:00
  • 234759158c scanner: disabled prefix operator '()' v0.23.0 camoroso 2024-07-13 18:10:04 +02:00
  • 00fda29606 operator-iter-value.go: prefix operator () used to get the current value of an iterator replaced by ^ camoroso 2024-07-13 17:17:16 +02:00
  • 2a2840bdf2 ListIterator now implements next and current command (e.g it.next) camoroso 2024-07-13 17:15:53 +02:00
  • 06373f5126 Impemented Typer interface camoroso 2024-07-13 17:14:25 +02:00
  • e69dad5fb5 Rename priority label priCoalesce as priDefault camoroso 2024-07-13 17:13:16 +02:00
  • 7459057df9 Expr embeds Typer and ast implements it camoroso 2024-07-13 17:11:39 +02:00
  • 176969c956 New iterator tests camoroso 2024-07-13 16:19:04 +02:00
  • cde2efacf1 Test on iterator filter and map camoroso 2024-07-13 15:30:04 +02:00
  • d7a7b3218c Merge branch 'main' into enhance_iterators camoroso 2024-07-13 09:08:16 +02:00
  • be3bb12f28 operator-unset.go: fixed function removal camoroso 2024-07-13 09:07:33 +02:00
  • 032916d4fa New operator unset to delete variables and functions from current context camoroso 2024-07-13 09:01:59 +02:00
  • f3cc0cc7ad operator-include.go: Fixed inclusion of a list of files. Now returns the value of the last evaluated expression. camoroso 2024-07-13 09:00:53 +02:00
  • 905337f963 ExprContext: new functions VarCount(), DeleteVar(), FuncCount(), DeleteFunc() camoroso 2024-07-13 08:59:15 +02:00
  • 9a95a837f6 data-cursor.go: add item mapping support camoroso 2024-07-13 06:44:00 +02:00
  • 8547248ea2 data-cursor.go: fixed filter camoroso 2024-07-13 00:12:08 +02:00
  • a02f998fc6 t_iterator_test.go: Fixed test numbering and add a commentend test that is not yet fulfilled v0.22.0 camoroso 2024-07-11 07:23:35 +02:00
  • e904003e6e minor changes camoroso 2024-07-11 06:53:14 +02:00
  • 990e04f957 operator-assign.go -- Fix: Assigning a functor to a collection's item didn't work camoroso 2024-07-11 06:49:02 +02:00
  • d8aed9dd7a t_iterator_test.go: added a test to verify the reset command of the list iterator camoroso 2024-07-11 05:54:22 +02:00
  • a73d24b171 iter-list.go -> list-iterator.go Fix: the reset command set the initial item to the second one in the list camoroso 2024-07-11 05:52:47 +02:00
  • 3ebba83bce term.go: replaced self receiver camoroso 2024-07-09 07:50:50 +02:00
  • 6b3bfa2a11 self param replaced as opTerm camoroso 2024-07-09 07:50:06 +02:00
  • 867806155e scanner.go: replaced self receiver camoroso 2024-07-08 07:30:58 +02:00
  • a711333a2e simple-store.go: commented out an unused function camoroso 2024-07-08 07:30:26 +02:00
  • af3e946bd4 operator-sum.go: replaced self receiver camoroso 2024-07-08 07:29:42 +02:00
  • 22a36fa630 context.go renamed as expr-context.go camoroso 2024-07-07 16:20:29 +02:00
  • 6d9a379c92 token.go: replaced self receiver camoroso 2024-07-07 16:19:58 +02:00
  • dd6404c786 t_scanner_test.go: replaced t.Log(fmtStringf()) with t.Logf() camoroso 2024-07-07 16:18:39 +02:00
  • 34874ef663 plugins.go: replaced stringsIndex()<0 with !strings.Contains() camoroso 2024-07-07 16:17:48 +02:00
  • 9bc8e8ca05 operator-sum.go: replaced for-loop with append() camoroso 2024-07-07 16:15:56 +02:00
  • 7f367cfc49 parser.go: renamed self receiver camoroso 2024-07-07 16:14:52 +02:00
  • fe999acf2c operator-index.go: removed unused parameter from the function verifyKey() camoroso 2024-07-07 16:14:04 +02:00
  • 2ed1a1842b operand-iterator.go: commented out an unused function and replaced self receiver camoroso 2024-07-07 16:10:43 +02:00
  • bb9493d0cc list-type.go: commented out an unused fuction camoroso 2024-07-07 16:08:45 +02:00
  • f279bf163e import-utils.go: commented out unused fuctions camoroso 2024-07-07 15:59:23 +02:00
  • 6834d9f47b function.go: removed useless param != nil check camoroso 2024-07-07 15:58:29 +02:00
  • 8051faa2bf fraction-type.go: use of strings.TrimSuffix() in place of check suffix and slice camoroso 2024-07-07 15:57:17 +02:00
  • f30e687a79 changed the file name comment camoroso 2024-07-07 15:55:51 +02:00
  • 2b6e46576b byte-slider.go: renamed function receiver from self to slider camoroso 2024-07-07 15:54:26 +02:00
  • dc06c03112 builtin-string.go: removed useless err == nil check camoroso 2024-07-07 15:53:29 +02:00
  • e8f5d3e445 builtin-base.go: unused function iteratorFunc() commented out camoroso 2024-07-07 15:52:16 +02:00
  • 76ce0945f7 context.go splitted in two files: expr-context.go and expr-function-go. Expr interface moved from ast.go to the new file expr.go camoroso 2024-07-07 15:50:50 +02:00
  • 340b99bad7 list-type.go: use of copy() for copying lists camoroso 2024-07-07 07:34:58 +02:00
  • 93dac956fb t_parser_test.go: more tests on ??, ?= and ?! operators camoroso 2024-07-06 17:01:23 +02:00
  • 307027d23d t_parser_test.go: changed all error values to string values camoroso 2024-07-06 16:47:00 +02:00
  • 896844e772 the common test framework now supports error, string and nil as value of the wantErr field camoroso 2024-07-06 16:43:13 +02:00
  • 9fc20077a1 operator-include.go: the include operator did not count the number of files included when its argument was a single string camoroso 2024-07-06 16:08:58 +02:00
  • d2a4adebdd dataCursor implements Typer interface camoroso 2024-07-06 16:05:54 +02:00
  • fd8e32e12b new operator "?!" (alternate value) camoroso 2024-07-06 05:54:53 +02:00
  • 1e62a51c15 t_fractions_test.go: added a test on the string() function camoroso 2024-07-06 04:56:00 +02:00
  • 0170baa0f5 iter-list.go: implemented the Typer interface camoroso 2024-07-06 04:51:11 +02:00
  • fe5c8e9619 tests improved v0.21.0 camoroso 2024-06-26 04:29:40 +02:00
  • 7164e8816c operator-bool.go: error messages improved camoroso 2024-06-26 04:28:53 +02:00
  • e0f3b028fc builtin-string.go: replaced ToInt() with ToGoInt() camoroso 2024-06-26 04:28:07 +02:00
  • 522b5983bd builtin-base.go: string() function added camoroso 2024-06-26 04:27:14 +02:00
  • f1e2163277 replaced ToInt() with ToGoInt() camoroso 2024-06-26 04:25:49 +02:00
  • bbdf498cf3 function.go: commented out some unused error functions camoroso 2024-06-26 04:23:48 +02:00
  • f75c991ed2 common-errors.go: commented out some unused error functions camoroso 2024-06-26 04:23:14 +02:00
  • a7836143cc utils.go: ToInt() renamed as ToGoInt() camoroso 2024-06-26 04:22:29 +02:00
  • ba9b9cb28f a lot oh changes to the test framework and new test files t_builtin-fmt_test.go and t_plugin_test.go added camoroso 2024-06-25 10:59:03 +02:00
  • ef1baa11a8 builtin-fmt.go: print() and println() can write data to a generic Writer. They fetch the writer from the control variable '_stdout'. If _stdout is nil, they write to os.Stdout camoroso 2024-06-25 10:55:54 +02:00
  • cfddbd60b9 control.go: use of UnsafeSetVar() in place of SetVar(). SetCtrl() added camoroso 2024-06-25 10:53:05 +02:00
  • 0760141caf utils.go: Removed CloneMap(). fromGenericAny(): check v against nil camoroso 2024-06-25 10:48:31 +02:00
  • b9e780e659 ExprContext: removed Merge() method camoroso 2024-06-25 10:45:54 +02:00
  • e41ddc664c Improved closure context persistence. Now it is possibile to define counters like this func(base){func(){@base=base+1}} camoroso 2024-06-24 07:20:17 +02:00
  • 3b641ac793 Doc: little changes camoroso 2024-06-21 09:06:25 +02:00
  • a1a62b6794 Doc: little changes camoroso 2024-06-20 07:10:59 +02:00
  • a18d92534f Doc: little changes camoroso 2024-06-19 22:51:37 +02:00
  • ec0963e26f Doc: little changes camoroso 2024-06-19 22:46:35 +02:00
  • be992131b1 Doc: little changes camoroso 2024-06-19 22:25:38 +02:00
  • 0e3960321f Doc: little changes camoroso 2024-06-19 22:22:10 +02:00
  • 61d34fef7d Doc: little changes camoroso 2024-06-19 22:20:28 +02:00
  • 581f1585e6 Doc: embedded images camoroso 2024-06-19 22:04:13 +02:00
  • 531cb1c249 Doc: concepts v0.20.0 camoroso 2024-06-19 09:38:02 +02:00
  • d1b468f35b t_list_test.go: new test cases added camoroso 2024-06-19 09:24:50 +02:00
  • ff9cf80c66 operator-index.go: ConstLastIndex is checked camoroso 2024-06-19 09:24:19 +02:00
  • d63b18fd76 parser.go: SymColon resets the firstToken flag; that is needed to specify range indeces that can define negative limits camoroso 2024-06-19 09:22:40 +02:00
  • 019470faf1 operator-range.go: Fixed priority bug; when range only has the left limit, right limit is set to ConstLastIndex constant camoroso 2024-06-19 09:20:02 +02:00
  • 302430d57d common-params.go: added the constant ConstLastIndex camoroso 2024-06-19 09:17:46 +02:00
  • 62ef0d699d token.go: new function IsOneOf() camoroso 2024-06-19 09:16:19 +02:00
  • 866de759dd file-reader.expr: simpler implementation camoroso 2024-06-17 14:07:39 +02:00
  • b1d6b6de44 refactored dict's item access camoroso 2024-06-17 14:06:33 +02:00
  • 7e357eea62 changed to comply new builtin-os-file.go's function names camoroso 2024-06-17 09:53:21 +02:00
  • d6b4c79736 operator-index.go: dict item access by generic keys implemented camoroso 2024-06-17 09:05:23 +02:00
  • d066344af8 builtin-os-file.go: changed read and write function names; added fileReadTextAll camoroso 2024-06-17 06:59:15 +02:00