Commit Graph

  • 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
  • 6c02b02d4a New draft camoroso 2024-04-03 06:23:45 +02:00
  • 4fc8ac64e7 README.adoc: examples, relational operators table completed camoroso 2024-04-02 08:18:34 +02:00
  • 4683a08da2 import() function added camoroso 2024-04-02 06:49:16 +02:00
  • 6aada9f7e4 funcs-math.go -> func-math.go camoroso 2024-04-02 05:18:30 +02:00
  • 4e8ebbef04 the preset.go file camoroso 2024-04-02 05:02:15 +02:00
  • f29b1f13b1 preset definitions and functions were moved to the new preset.go file camoroso 2024-04-02 05:00:48 +02:00
  • 072dab4144 Expressions now support function definition camoroso 2024-04-02 04:36:03 +02:00
  • f58ec3ac32 parser: now checks whether the assign operator '=' is preceded by a variable camoroso 2024-03-31 06:38:46 +02:00
  • 28e3b2f741 parser: accepts espression forest (multi expressions) camoroso 2024-03-31 06:10:27 +02:00
  • 4e361f938e ast: now supports espression forest (multi expressions) camoroso 2024-03-31 05:57:02 +02:00
  • aa705e68bf 'and' and 'or' operators are now evaluated using logic shortcut (this behaviour can be changed setting system var '_bool_shortcut' to false camoroso 2024-03-31 05:09:24 +02:00
  • 94ad968d5e ast.go: presetting of system variables before starting evaluation process camoroso 2024-03-31 05:06:24 +02:00
  • e3e5ad7da8 Farmatting changes camoroso 2024-03-30 08:12:47 +01:00
  • d0572260c7 New operators 'but' and assignment ('=') camoroso 2024-03-30 08:09:41 +01:00
  • 43fd457383 term.go: added priority levels priBut and priAssign camoroso 2024-03-30 08:08:49 +01:00
  • e085502df3 symbol.go: New keyword 'but' camoroso 2024-03-30 08:08:11 +01:00
  • 85fb007a2b The plus and minus operators now support lists for join and difference respectively camoroso 2024-03-30 07:05:22 +01:00
  • f540ec28e8 funcs-math.go: Implementes add() and mul() function for both simple values and iterators camoroso 2024-03-30 07:01:00 +01:00
  • 36feed3168 parser.go: changedthe message error about unknown functiona camoroso 2024-03-30 06:58:29 +01:00
  • 836a9165a5 Added Iterator interface and two implementation: list itrator and range iterator camoroso 2024-03-30 06:56:12 +01:00
  • e012afa691 Added the RegisterFunc() interface to the expression context camoroso 2024-03-30 06:54:43 +01:00
  • 20007a5a81 utils.go: New function isList() that checks is a value is an array of any camoroso 2024-03-30 06:50:49 +01:00
  • 107484d13c parser_test.go: add test on the list data type camoroso 2024-03-28 08:52:54 +01:00
  • c36c88d0fd Added list '[]' data type. Fix: function with no arguments camoroso 2024-03-28 08:51:02 +01:00
  • 3ca415fc66 Merge branch 'main' of ssh://git.portale-stac.it:3022/go-pkg/expr camoroso 2024-03-28 06:34:53 +01:00
  • ae2f7c89bd helpers_test.go: changed some comments camoroso 2024-03-28 06:34:40 +01:00
  • 27f53db0f4 helpers_test.go: tests on the helper functions camoroso 2024-03-28 06:33:14 +01:00
  • 6d8c6f5154 helpers.go provides easy functions to parse and evaluate expressions camoroso 2024-03-28 06:32:37 +01:00
  • d20027296c New test on the tilde operator. Now it is based on simple-var-store camoroso 2024-03-28 06:30:45 +01:00
  • 37f0de5902 Added simple context objects camoroso 2024-03-28 06:29:11 +01:00
  • fdc2fd8dfd utils.go: added functions anyInteger() and anyFloat() camoroso 2024-03-28 06:26:20 +01:00
  • 9fa3d9fcb2 Added the tilde '~' operator acting as NOT camoroso 2024-03-28 06:25:29 +01:00
  • 45c0663ea1 Second incomplete draft camoroso 2024-03-27 08:44:47 +01:00
  • 998580772a added operator '%' (division remainder) and test camoroso 2024-03-26 09:27:14 +01:00
  • 594806c999 added operator './' (float division) and test camoroso 2024-03-26 09:12:44 +01:00
  • 800664c98c added go.mod camoroso 2024-03-26 08:56:20 +01:00
  • 4bb1e9abcd Merge branch 'main' of ssh://git.portale-stac.it:3022/go-pkg/expr camoroso 2024-03-26 08:45:37 +01:00
  • 33841c5861 Added copyrighr note to all sources camoroso 2024-03-26 08:45:18 +01:00
  • eaf5e29a0c byte-ring.go -> byte-slider.go camoroso 2024-03-26 08:44:56 +01:00
  • 3586aadbc1 First incomplete draft camoroso 2024-03-26 07:36:12 +01:00
  • 19ab171109 README.md -> README.adoc camoroso 2024-03-26 07:17:27 +01:00
  • 522b880ca3 Added all source files v0.1.0 camoroso 2024-03-26 07:00:53 +01:00
  • 737696b71e first commit camoroso 2024-03-26 06:51:04 +01:00