Commit Graph

  • e00886b1ed operator-fraction.go: many new functions supporting fraction operations camoroso 2024-05-01 21:49:15 +02:00
  • 49904f9097 the new ListType type takes the of []any camoroso 2024-05-01 21:47:27 +02:00
  • 2d0d03b975 utils.go: numAsFloat() now supports also fraction camoroso 2024-05-01 21:44:55 +02:00
  • 8cb048edb0 common-type-names.go: typeFraction added camoroso 2024-05-01 21:43:42 +02:00
  • cb3d8827fa operator-fraction.go -- new data-type and operator fraction camoroso 2024-05-01 09:48:09 +02:00
  • 4c83764332 term.go: priFraction added camoroso 2024-05-01 09:47:28 +02:00
  • c0c2ab8b4e func-bolerplate.bash: generate Go source for a new functions module camoroso 2024-05-01 07:13:52 +02:00
  • 288e93d708 func-string.go: string utils module camoroso 2024-05-01 07:10:59 +02:00
  • 92e862da19 common definitions collections camoroso 2024-05-01 07:10:11 +02:00
  • dc6975e56c term.go: better error message in term.toInt() camoroso 2024-05-01 07:09:18 +02:00
  • 6a2d3c53fd func-common.go common-errors.go camoroso 2024-05-01 07:09:01 +02:00
  • 5643a57bcc utils.go: new function toInt() converts any(int64) to int camoroso 2024-05-01 07:07:36 +02:00
  • 52fb398cd8 data-cursor.go: deep changes to better handle the data-source camoroso 2024-05-01 05:59:54 +02:00
  • cdbe3dfc22 commented tracing code camoroso 2024-05-01 05:57:08 +02:00
  • 7aabd068ed func-math.go: add() now supports general iterators. TODO: do the same thing to mul() camoroso 2024-05-01 05:55:37 +02:00
  • 924f5da725 Clone functions now filter ref variables to avoid to pass them to child context camoroso 2024-05-01 05:53:56 +02:00
  • d657cbb51e func-os.go: fixed the handling of err==io.EOF camoroso 2024-05-01 05:48:37 +02:00
  • be874503ec iterator.go: new error function errInvalidDataSource() camoroso 2024-05-01 05:46:24 +02:00
  • 056d42d328 utils.go: Copy and Clone maps with filter function. Also added isIterator(). camoroso 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(). camoroso 2024-04-28 06:45:20 +02:00
  • fc0e1ffaee New function isFunctor() camoroso 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. camoroso 2024-04-28 05:41:13 +02:00
  • 6dd8283308 function-register.go module-register.go camoroso 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". camoroso 2024-04-28 04:44:19 +02:00
  • 2ccbdb2254 Fixed Clean() and added error message when calling optional missing functions camoroso 2024-04-28 04:41:43 +02:00
  • c5fca70cfc operator-length.go: Fix: the returned value was int, instead of int64 camoroso 2024-04-27 22:37:56 +02:00
  • 895778f236 operator-dot.go: '*dataCursor' case added; to be enhanced camoroso 2024-04-27 22:34:23 +02:00
  • 81c85afbea operand-iterator.go: accepts two new optional functions 'reset' and 'clean' from data-source camoroso 2024-04-27 22:32:57 +02:00
  • 354cb79580 data-cursor.go: added Reset() e Clean() functions camoroso 2024-04-27 22:31:14 +02:00
  • 327bffa01f symbol.go: typo camoroso 2024-04-27 22:30:18 +02:00
  • c99be491df operator-dot.go: refactoring camoroso 2024-04-27 14:44:52 +02:00
  • 60effe8f1b new prefix operator 'include' camoroso 2024-04-27 09:48:45 +02:00
  • 824b9382be termo.go: changed the name of a variable camoroso 2024-04-27 09:48:05 +02:00
  • 9ce6b7255b corrected a comment camoroso 2024-04-27 09:47:24 +02:00
  • 9dbf472630 helpers.go: two new functions: EvalStream() and EvalFile() camoroso 2024-04-27 09:46:03 +02:00
  • 723976b37e merged with datasource-context v0.5.0 camoroso 2024-04-27 06:19:12 +02:00
  • 361b84f31f moved the exportVar() and exportFunc() functions from data-cursor.go to context-helpers.go camoroso 2024-04-27 06:16:11 +02:00
  • 70892aa980 removed commented code camoroso 2024-04-27 06:14:09 +02:00
  • 10eec286fa new operator '111123' that returns the content of the current context or the context of an iterator camoroso 2024-04-27 06:12:30 +02:00
  • 894b1884eb temporary camoroso 2024-04-26 21:03:22 +02:00
  • d2bab5fd9e context clone & export function moved from operand-func.go to context-helpers.go camoroso 2024-04-26 20:12:56 +02:00
  • f94f369547 context clone & export function moved from operand-func.go to context-helpers.go camoroso 2024-04-26 20:12:56 +02:00
  • 107ec4958f operator-length.go: the prefix operator '#' now accept iterator oeprand; it returns the index of the current item camoroso 2024-04-26 08:04:55 +02:00
  • a22047e84e operand-func.go: removed commented code camoroso 2024-04-26 08:02:52 +02:00
  • 80b7d5b988 operand-dict.go: removed commented code camoroso 2024-04-26 08:02:22 +02:00
  • 2ab896bbac the dataCursor struct has been moved fro operand-iterator.go to the new file data-cursor.go camoroso 2024-04-26 08:01:35 +02:00
  • 62e16219f7 func-math.go/add: now supports the general iterator interface camoroso 2024-04-26 04:47:59 +02:00
  • 750c660331 first working implementation of iterators and some fixes to the parser around lists analysis camoroso 2024-04-26 04:45:42 +02:00
  • 7a88449cd1 updated some error messages; add some tests on the dict data-type; Use of reflect.DeepEqual() to compare the test results with the desired results. camoroso 2024-04-26 04:43:36 +02:00
  • b14dc2f1ee provisional implementation of the postfix ++ operator camoroso 2024-04-26 04:37:50 +02:00
  • d354102c6a adapted to the new GetFuncInfo() specification camoroso 2024-04-26 04:36:03 +02:00
  • 761ec868e6 operator-assign.go: little refactor camoroso 2024-04-26 04:31:31 +02:00
  • 7941c2dfec the FlatArrayIterator has been moved to the new file iter-list.go camoroso 2024-04-26 04:30:43 +02:00
  • ebb2811ed3 context.go: added exists return value to the GetFuncInfo() camoroso 2024-04-26 04:28:50 +02:00
  • 75c0c0f681 Fix ast.go: the insert() didn't check the returned error camoroso 2024-04-26 04:26:20 +02:00
  • 268a968548 term.go: added two new priorities (priIterValue and priPrePost); new function term.symbol()) camoroso 2024-04-26 04:23:39 +02:00
  • 323308d86f expressions now support dict data-type camoroso 2024-04-21 14:24:56 +02:00
  • b28d6a8f02 commented out a test for a future new operator based on the caret symbol camoroso 2024-04-21 07:12:59 +02:00
  • ab82bcf1ef preparation for the definition of the iterators camoroso 2024-04-21 07:11:58 +02:00
  • a628bfac39 New symbol '^' (caret). The scanner now returns an error token if can't recognise a symbol. camoroso 2024-04-21 07:10:19 +02:00
  • d1122da566 coalesce operators '??' and '?=' now accepts function definitions too camoroso 2024-04-20 09:40:07 +02:00
  • 6ae5ca34ed expr_test.go, more tests on the int() function camoroso 2024-04-20 08:50:05 +02:00
  • 730b59e6d3 funcs_test.go, more tests on the int() function camoroso 2024-04-20 07:41:58 +02:00
  • f198ba47e1 new convert function int() camoroso 2024-04-20 07:29:42 +02:00
  • 943ef3327e empty expressions no more return error, now they return nil camoroso 2024-04-20 06:56:26 +02:00
  • 475ef3c80a parser_test.go: test added on isNil() function camoroso 2024-04-20 06:54:51 +02:00
  • 3c0307524b simple-func-store.go: now imports 'builtins' module on creation camoroso 2024-04-20 06:53:30 +02:00
  • c27e487fc3 new function isNil() camoroso 2024-04-20 06:52:33 +02:00
  • ed973c9b7b fixed all errors in test files camoroso 2024-04-20 06:04:35 +02:00
  • 15bbfacd47 all constant value are now stored in the same data struct (same constructor). Also nil const added camoroso 2024-04-20 05:39:49 +02:00
  • 04f934ab04 'nil' keyword added camoroso 2024-04-20 05:38:00 +02:00
  • ba1d887a05 commit hook-training camoroso 2024-04-20 04:02:51 +02:00
  • faff5a7e2c hook_test next commit camoroso 2024-04-19 15:02:53 +02:00
  • 36f6846a3f hook_test first commit camoroso 2024-04-19 15:00:20 +02:00
  • 591b4ffc19 Expr.adoc: 'work in progress' added camoroso 2024-04-19 14:30:40 +02:00
  • fe9ab9ebd2 Expr.adoc, corrected a typo camoroso 2024-04-19 09:20:01 +02:00
  • 7198749063 new operator dot '.' used to select an item or character from a list or a string respectively camoroso 2024-04-19 09:05:26 +02:00
  • b76481bbf2 new operator 'builtin' camoroso 2024-04-19 00:19:11 +02:00
  • 4f05e5c90a funcs-math.go registered as 'math.arith' camoroso 2024-04-19 00:18:23 +02:00
  • 8ad25afdc4 function register camoroso 2024-04-19 00:16:49 +02:00
  • 54bc759f70 expressions now support intger value in bin (0b), oct (0o), and hex (0x) form camoroso 2024-04-17 14:15:50 +02:00
  • b6887af77a added the prefix operator '#' (length of string and array) camoroso 2024-04-17 07:12:32 +02:00
  • 353d495c50 two new operators added: '<<' and '>> camoroso 2024-04-16 03:54:50 +02:00
  • f45b2c0a88 func-os.go: set of functions to work with files camoroso 2024-04-15 07:01:34 +02:00
  • 624e3ac0f2 parser_test.go: changed ImportImportFunc(s) camoroso 2024-04-15 07:00:40 +02:00
  • 35fcbd2bce expr_test.go: added a test in passing functions as parameters camoroso 2024-04-15 06:59:27 +02:00
  • 2150181303 func-import.go: renamed ImportImportFunc as ImportImportFuncs camoroso 2024-04-15 06:57:29 +02:00
  • d643e24a1b doc: Syntax of expressions moved from README.adoc to doc/Expr.doc camoroso 2024-04-14 08:16:01 +02:00
  • 43e631f2e8 enabled passing functions as parameters in function call camoroso 2024-04-14 07:38:28 +02:00
  • f1afbf9b49 parser.go: removed commented code camoroso 2024-04-14 07:35:43 +02:00
  • ed6af6603a commented out some test code camoroso 2024-04-13 22:15:20 +02:00
  • 51e740d243 expr_test.go: fixed test expression camoroso 2024-04-13 22:14:28 +02:00
  • 53dacd5332 operator-selector.go: fixed the case match algorithm camoroso 2024-04-13 22:13:16 +02:00
  • e297f2a1d3 expr_test.go: new test file to verify complex expressions camoroso 2024-04-13 10:11:44 +02:00
  • 70cdb9367e changed the structer of the selector components: now all case are a list value assigned as right operand of the selector operator camoroso 2024-04-13 10:10:25 +02:00
  • efd9af9030 graph.go: remove unused Reticle code camoroso 2024-04-13 06:05:04 +02:00
  • b67d896415 Merge branch 'main' into feat_graph camoroso 2024-04-13 06:01:06 +02:00
  • f03ae555fc added the copywrite comment header in source files that lacked it camoroso 2024-04-13 06:00:22 +02:00
  • f36ae33acc added the graph source files camoroso 2024-04-13 05:54:34 +02:00
  • b9ea96f649 merge: solved a lot of conflicts caused by an incorect commit removal camoroso 2024-04-13 05:47:10 +02:00