Commit Graph

  • 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
  • f41dba069e plugin.go: support Liteide and VScode to debug executable file name camoroso 2024-06-17 06:57:47 +02:00
  • 703ecf6829 Added utility function GetLast() to context camoroso 2024-06-17 06:56:32 +02:00
  • ba479a1b99 Function call moved from operand-func.go to function.go camoroso 2024-06-17 06:54:50 +02:00
  • 24e6a293b0 common-params.go: ParamName added camoroso 2024-06-12 11:16:57 +02:00
  • 28f464c4dc plugins.go: If the main program's file name ends with '.debug', plugins will be loaded from file with name ending with '.debug' camoroso 2024-06-12 11:15:31 +02:00
  • 9fb611aa20 Formatter option is now composed of two data: flags (lower 16 bits) and indentation size (higher 16 bits). DictType and ListType formatter use both indent and flag options. Simple-store now makes a DictType from its data and its ToString() function returns dict.ToString() v0.19.0 camoroso 2024-06-11 16:32:01 +02:00
  • 56d6d06d15 simple-store.go: newline removed after context last brace in ToString() camoroso 2024-06-10 20:58:38 +02:00
  • d9f7e5b1ad common-errors.go: exported all error functions. builtin-string.go: renamed all functions from somthingStr() to strSomething() camoroso 2024-06-10 20:37:58 +02:00
  • 0f54e01ef3 t_scanner_test.go: Test nr 25 changed because now single-quotes can enclose strings camoroso 2024-06-10 20:36:03 +02:00
  • 63f5db00b3 all test file on builtin functions have been renamed from t_func-*_test.go to t_builtin-*_test.go camoroso 2024-06-10 20:34:11 +02:00
  • 9745a5d909 utils.go: toInt() -> ToInt(); toBool() -> ToBool() camoroso 2024-06-10 19:03:39 +02:00
  • 0bb4c96481 scanner.go: Strings can be enclosed between two single-quotes too camoroso 2024-06-10 18:52:13 +02:00
  • 1757298eb4 formatter.go: typeName() renamed as TypeName() camoroso 2024-06-10 09:37:27 +02:00
  • 54041552d4 dict-type.go: added MakeDict() constructor camoroso 2024-06-10 09:35:48 +02:00
  • 5302907dcf external plugins can now request for dependencies camoroso 2024-06-09 17:12:57 +02:00
  • eb4b17f078 moved all test expression files in the test-resources forlder camoroso 2024-06-09 16:01:47 +02:00
  • 33d70d6d1a splitted go and expr function bindings in dedicated source files v0.18.0 camoroso 2024-06-09 10:41:06 +02:00
  • 9df9ad5dd1 func-*.go modules renamed as builtin-*.go. Also changed and exported some identiefier relatet to the builtin feature camoroso 2024-06-09 10:28:51 +02:00
  • 34dc828ead exported some identifier camoroso 2024-06-09 10:13:37 +02:00
  • 29bc2c62a3 first plugin support. Module organization requires a better structure to decouple definitions and implementations camoroso 2024-06-09 07:41:56 +02:00
  • 8eb2d77ea3 improved position of some common functions camoroso 2024-06-09 07:38:29 +02:00
  • 53bcf90d2a operator-builtin.go: some error messages improved camoroso 2024-06-09 07:36:12 +02:00
  • f347b15146 Control vars are now stored in the globalCtx only. However, it is still allowed to store control var in a local context in special situation camoroso 2024-06-07 14:39:17 +02:00
  • 115ce26ce9 IsOptional() function of ExprFuncParam renamed as IdDefault(). A new IsOptional() function created to check if a param is optional without requiring a default value camoroso 2024-06-07 09:45:02 +02:00
  • 227944b3fb Removed eval() function from ast interface and implementation. Check on preset control variables is now done in initDefaultVars() camoroso 2024-06-07 09:31:33 +02:00
  • 0d01afcc9f member ctx removed from struct parser because it is unused camoroso 2024-06-07 09:03:42 +02:00
  • 00c76b41f1 list-type.go: two special constructors, MakeList() and ListFromStrigns(), added camoroso 2024-06-07 09:02:14 +02:00
  • 08e0979cdd import-utils.go: addPresetDirs() replaced by addSearchDirs() camoroso 2024-06-07 09:01:18 +02:00
  • f04f5822ec common-type-names.go: added type name list-of camoroso 2024-06-07 08:59:04 +02:00
  • 80d47879e9 t_list_test.go: removed commented code camoroso 2024-06-07 08:54:59 +02:00
  • 985eb3d19d Merge branch 'main' into feat_plugin camoroso 2024-06-06 05:33:56 +02:00
  • 45734ab393 new test file t_iter-list.go camoroso 2024-06-06 05:33:35 +02:00
  • c100cf349d some identier exported; new file import-utils.go camoroso 2024-06-06 05:31:35 +02:00