Commit Graph

  • 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
  • 838ab9fd7e control: exported all control variables by renaming them in upper case camoroso 2024-04-13 05:16:23 +02:00
  • ad6b4b872f token_test.go: rewritten using a more structured form camoroso 2024-04-13 05:08:38 +02:00
  • c75e6485e0 term_test.go: changed some fmt.Println() to t.Log() camoroso 2024-04-13 05:07:38 +02:00
  • 7b80f7f03b helpers_test.go: removed the printed messages "Hello World!" camoroso 2024-04-13 05:06:43 +02:00
  • 7f9fd570b2 parser_test.go: changed the notice message about EXPR_PATH camoroso 2024-04-13 04:40:48 +02:00
  • b17d2250a4 parser.go: fixed a problem on the selector operator camoroso 2024-04-13 04:37:15 +02:00
  • dda10749d0 token.go: better implementation of the function String() camoroso 2024-04-13 04:33:59 +02:00
  • 07ca84170e operand-selector-case.go: String() function added to the selectorCase type camoroso 2024-04-13 04:32:54 +02:00
  • 55e136e9bc ast.go: String() function addedd to the Expr interface camoroso 2024-04-13 04:31:53 +02:00
  • e493c40c7b builtin-funcs: export import functions (made their names uppercase) camoroso 2024-04-13 04:18:14 +02:00
  • 95605232ab README.adoc: updated draft camoroso 2024-04-09 09:11:47 +02:00
  • 8f396a35de ExprContext.SetVar() no longer requires the explicit specification of the type of number v0.4.0 camoroso 2024-04-09 07:12:22 +02:00
  • bd323efedf README.adoc: example programs updated camoroso 2024-04-09 07:09:23 +02:00
  • a9b143d012 README.adoc: example programs updated v0.3.0 camoroso 2024-04-09 06:29:44 +02:00
  • 024ff42be0 Arg struct members are now exported camoroso 2024-04-09 06:28:57 +02:00
  • 8ab2c28343 EvalArg -> Arg camoroso 2024-04-09 06:13:12 +02:00
  • c4a2fcce3d README.adoc: proofreading v0.2.0 camoroso 2024-04-09 05:42:50 +02:00
  • 4d94a7ad59 class and kind types removed camoroso 2024-04-09 05:32:50 +02:00
  • 9ac88bf446 made some interfaces exportable and fixed/enhaaced some selector operator versions camoroso 2024-04-08 23:17:56 +02:00
  • aa195b9a68 README.adoc: section on selector operator camoroso 2024-04-08 23:14:25 +02:00
  • d3f388f7e1 Selector operator, multi-operand, added camoroso 2024-04-08 22:16:07 +02:00
  • f74e523617 test on '@@' camoroso 2024-04-06 03:09:02 +02:00
  • 7612a59757 Operator '@@' (export-all) added. Experimental include() function also added camoroso 2024-04-06 03:06:07 +02:00
  • ce6b88ccdd present.go -> control.go camoroso 2024-04-06 03:01:57 +02:00
  • 43b7d3b15e constant prefix name 'preset_' changed to 'control_'. 'control_export_all' constant added. camoroso 2024-04-06 03:01:17 +02:00
  • 181a9210d5 parser.go -- Fix: reset to true the firstToken flag after getting a semicolon camoroso 2024-04-06 01:32:29 +02:00
  • 7f9d7690f9 SimpleFuncStore is now derived from SimpleVarStore camoroso 2024-04-06 01:07:06 +02:00
  • 0ba96e65a5 Variable reference camoroso 2024-04-06 01:00:29 +02:00
  • 574a6f5215 Expression process diagram added camoroso 2024-04-04 12:56:43 +02:00
  • d073d11ad3 Variable references belonging to the parent scope added ('@') camoroso 2024-04-04 12:54:26 +02:00
  • 8c3254a8f2 typo camoroso 2024-04-03 13:19:18 +02:00
  • fccfd2f971 Operators '??' and '?=' added camoroso 2024-04-03 13:15:25 +02:00
  • 088e347c95 Changed SetValue() as SetVar() and GetValue() as GetVar() camoroso 2024-04-03 06:29:57 +02:00