Commit Graph

525 Commits

Author SHA1 Message Date
bb9493d0cc list-type.go: commented out an unused fuction 2024-07-07 16:08:45 +02:00
f279bf163e import-utils.go: commented out unused fuctions 2024-07-07 15:59:23 +02:00
6834d9f47b function.go: removed useless param != nil check 2024-07-07 15:58:29 +02:00
8051faa2bf fraction-type.go: use of strings.TrimSuffix() in place of check suffix and slice 2024-07-07 15:57:17 +02:00
f30e687a79 changed the file name comment 2024-07-07 15:55:51 +02:00
2b6e46576b byte-slider.go: renamed function receiver from self to slider 2024-07-07 15:54:26 +02:00
dc06c03112 builtin-string.go: removed useless err == nil check 2024-07-07 15:53:29 +02:00
e8f5d3e445 builtin-base.go: unused function iteratorFunc() commented out 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
2024-07-07 15:51:29 +02:00
340b99bad7 list-type.go: use of copy() for copying lists 2024-07-07 07:34:58 +02:00
93dac956fb t_parser_test.go: more tests on ??, ?= and ?! operators 2024-07-06 17:01:23 +02:00
307027d23d t_parser_test.go: changed all error values to string values 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 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 2024-07-06 16:08:58 +02:00
d2a4adebdd dataCursor implements Typer interface 2024-07-06 16:05:54 +02:00
fd8e32e12b new operator "?!" (alternate value) 2024-07-06 05:54:53 +02:00
1e62a51c15 t_fractions_test.go: added a test on the string() function 2024-07-06 04:56:00 +02:00
0170baa0f5 iter-list.go: implemented the Typer interface 2024-07-06 04:54:42 +02:00
fe5c8e9619 tests improved 2024-06-26 04:29:40 +02:00
7164e8816c operator-bool.go: error messages improved 2024-06-26 04:28:53 +02:00
e0f3b028fc builtin-string.go: replaced ToInt() with ToGoInt() 2024-06-26 04:28:07 +02:00
522b5983bd builtin-base.go: string() function added 2024-06-26 04:27:14 +02:00
f1e2163277 replaced ToInt() with ToGoInt() 2024-06-26 04:25:49 +02:00
bbdf498cf3 function.go: commented out some unused error functions 2024-06-26 04:23:48 +02:00
f75c991ed2 common-errors.go: commented out some unused error functions 2024-06-26 04:23:14 +02:00
a7836143cc utils.go: ToInt() renamed as ToGoInt() 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 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
2024-06-25 10:55:54 +02:00
cfddbd60b9 control.go: use of UnsafeSetVar() in place of SetVar(). SetCtrl() added 2024-06-25 10:53:05 +02:00
0760141caf utils.go: Removed CloneMap(). fromGenericAny(): check v against nil 2024-06-25 10:48:31 +02:00
b9e780e659 ExprContext: removed Merge() method 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}} 2024-06-24 07:20:17 +02:00
3b641ac793 Doc: little changes 2024-06-21 09:06:25 +02:00
a1a62b6794 Doc: little changes 2024-06-20 07:10:59 +02:00
a18d92534f Doc: little changes 2024-06-19 22:51:37 +02:00
ec0963e26f Doc: little changes 2024-06-19 22:46:35 +02:00
be992131b1 Doc: little changes 2024-06-19 22:25:38 +02:00
0e3960321f Doc: little changes 2024-06-19 22:22:10 +02:00
61d34fef7d Doc: little changes 2024-06-19 22:20:28 +02:00
581f1585e6 Doc: embedded images 2024-06-19 22:04:13 +02:00
531cb1c249 Doc: concepts 2024-06-19 09:38:02 +02:00
d1b468f35b t_list_test.go: new test cases added 2024-06-19 09:24:50 +02:00
ff9cf80c66 operator-index.go: ConstLastIndex is checked 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 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 2024-06-19 09:20:02 +02:00
302430d57d common-params.go: added the constant ConstLastIndex 2024-06-19 09:17:46 +02:00
62ef0d699d token.go: new function IsOneOf() 2024-06-19 09:16:19 +02:00
866de759dd file-reader.expr: simpler implementation 2024-06-17 14:07:39 +02:00
b1d6b6de44 refactored dict's item access 2024-06-17 14:06:33 +02:00
7e357eea62 changed to comply new builtin-os-file.go's function names 2024-06-17 09:54:20 +02:00