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
d6b4c79736
operator-index.go: dict item access by generic keys implemented
2024-06-17 09:05:23 +02:00
d066344af8
builtin-os-file.go: changed read and write function names; added fileReadTextAll
2024-06-17 06:59:15 +02:00
f41dba069e
plugin.go: support Liteide and VScode to debug executable file name
2024-06-17 06:57:47 +02:00
703ecf6829
Added utility function GetLast() to context
2024-06-17 06:56:32 +02:00
ba479a1b99
Function call moved from operand-func.go to function.go
2024-06-17 06:54:50 +02:00
24e6a293b0
common-params.go: ParamName added
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'
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()
2024-06-11 16:32:01 +02:00
56d6d06d15
simple-store.go: newline removed after context last brace in ToString()
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()
2024-06-10 20:37:58 +02:00
0f54e01ef3
t_scanner_test.go: Test nr 25 changed because now single-quotes can enclose strings
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
2024-06-10 20:34:11 +02:00