28f464c4dc
plugins.go: If the main program's file name ends with '.debug', plugins will be loaded from file with name ending with '.debug'
camoroso2024-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
camoroso2024-06-11 16:32:01 +02:00
56d6d06d15
simple-store.go: newline removed after context last brace in ToString()
camoroso2024-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()
camoroso2024-06-10 20:37:58 +02:00
0f54e01ef3
t_scanner_test.go: Test nr 25 changed because now single-quotes can enclose strings
camoroso2024-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
camoroso2024-06-10 20:34:11 +02:00
5302907dcf
external plugins can now request for dependencies
camoroso2024-06-09 17:12:57 +02:00
eb4b17f078
moved all test expression files in the test-resources forlder
camoroso2024-06-09 16:01:47 +02:00
33d70d6d1a
splitted go and expr function bindings in dedicated source files
v0.18.0
camoroso2024-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
camoroso2024-06-09 10:28:51 +02:00
29bc2c62a3
first plugin support. Module organization requires a better structure to decouple definitions and implementations
camoroso2024-06-09 07:41:56 +02:00
8eb2d77ea3
improved position of some common functions
camoroso2024-06-09 07:38:29 +02:00
53bcf90d2a
operator-builtin.go: some error messages improved
camoroso2024-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
camoroso2024-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
camoroso2024-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()
camoroso2024-06-07 09:31:33 +02:00
0d01afcc9f
member ctx removed from struct parser because it is unused
camoroso2024-06-07 09:03:42 +02:00
00c76b41f1
list-type.go: two special constructors, MakeList() and ListFromStrigns(), added
camoroso2024-06-07 09:02:14 +02:00
08e0979cdd
import-utils.go: addPresetDirs() replaced by addSearchDirs()
camoroso2024-06-07 09:01:18 +02:00
f04f5822ec
common-type-names.go: added type name list-of
camoroso2024-06-07 08:59:04 +02:00
9c29392389
changes to adapt errors using typeName() functions
camoroso2024-06-05 05:52:27 +02:00
a7b6e6f8d2
t_list_test.go: some tests added
camoroso2024-06-05 05:50:37 +02:00
a16ac70e4a
t_dict_test.go: some tests added
camoroso2024-06-05 05:49:07 +02:00
ab2e3f0528
use of typeName() in error messages
camoroso2024-06-05 05:48:02 +02:00
974835a8ef
utils.go/typeName() and formatter.go/getTipeName() have been merged in formatter.go/typeName()
camoroso2024-06-05 05:42:37 +02:00
457a656073
tests on collection's item assignments and some other changes
camoroso2024-06-05 05:09:13 +02:00
9e63e1402e
t_parser_test.go: Expr's type names
camoroso2024-06-05 05:06:43 +02:00
e4ded4f746
operator-assign.go: some errors message changed to report the Expr's type names, not the Go ones
camoroso2024-06-05 05:05:40 +02:00
4e3af837e6
list-type.go: constructor newListA(), called without arguments, now creates an empty list, not a nil object
camoroso2024-06-05 05:03:37 +02:00
ca12722c93
utils.go: new function typeName()
camoroso2024-06-05 05:01:34 +02:00
d96123ab02
The assign operator '=' can now set items in ListType and DictType
camoroso2024-06-04 11:07:35 +02:00
f2d6d63017
fixed an error message (test nr 97)
camoroso2024-06-04 11:04:59 +02:00
4f432da2b9
typeFilepath and typeDirpath renamed as paramFilepath and paramDirpath respectively
camoroso2024-06-02 11:32:47 +02:00
e4b4b4fb79
function.go: if the right most parameter is repeteable (pfRepeat), then it does not increment the min-arg count
camoroso2024-06-02 11:30:24 +02:00
c04678c426
simple-store.go: duplicated name removed from funcs list
camoroso2024-06-02 11:12:53 +02:00
9bba40f155
Expr's functions now support parameters with default value
v0.16.0
camoroso2024-06-01 19:56:40 +02:00
f66cd1fdb1
New test file for specific code section or data type
camoroso2024-06-01 16:31:50 +02:00
3736214c5a
A lot of changes. Main ones are: - fraction type renamed as FractionType and moved from operator-fraction.go to fraction-type.go - ListType moved from operator-list.go to list-type.go - all test file were renamed adding the "t_" prefix - defined a test template in file t_temple_test.go - new test file t_relational_test.go where relational tests are collected - lists can now compared as set using operators <, <=, >, and >= (IMPORTANT: here = menas same content, not same list)
camoroso2024-05-28 07:26:05 +02:00
78cbb7b36f
test index/5 moved to list/26 because reflection's deep-equal function returns false even though computed and wanted lists are equal
camoroso2024-05-26 06:30:42 +02:00
2c87d6bf9e
Eprx now supports range of indeces to extract parts of strings or lists
camoroso2024-05-26 06:19:08 +02:00
691c213d17
operator-dot.go: the '.' (dot) operator can now only be used to call member functions of iterators
camoroso2024-05-25 03:35:17 +02:00
fa136cb70b
parser.go: square brackets are also allowed after a variable
camoroso2024-05-25 03:32:13 +02:00
76dd01afcd
strings_test.go: test nr 5,6 fixed
camoroso2024-05-25 03:30:26 +02:00
4283fab816
list_test.go: test nr 15,16,17 fixed
camoroso2024-05-25 03:28:01 +02:00
03d4c192c2
new syntax to get items from collection: collection[index]. Supported collections are string, list and dict
camoroso2024-05-24 22:51:01 +02:00
82ec78719d
operand-list.go: ToString() now can handle the Truncate option
camoroso2024-05-20 05:30:26 +02:00
554ff1a9dd
operator-sum.go: better type checking when adding fractions
camoroso2024-05-20 05:27:44 +02:00
6bb891e09d
term.go: Error messagge about incompatible types now truncates long values
camoroso2024-05-20 05:26:33 +02:00
1c4ffd7d64
formatter.go: Truncate function and number type names
camoroso2024-05-20 05:25:04 +02:00
b92b19e1dd
New interface to Typer: the function TypeName() returns a more readable type name
camoroso2024-05-19 02:23:28 +02:00
9967918418
operator-sum.go: adding item to a list is no more allowed. The sum operator '+' now ca only join two list.
camoroso2024-05-19 02:20:36 +02:00
6c14c07d66
operand-iterator.go: adapted to the new DictType
camoroso2024-05-19 01:47:06 +02:00
9ea170e53b
new operator 'in': it returns true if a item belongs to a list or if a key belongs to a dict
camoroso2024-05-19 01:44:50 +02:00
a543360151
when the list value involved in an insert or append operations (directly) comes from a variable, that variable receives the result list
camoroso2024-05-19 01:42:15 +02:00
24a25bbf94
adapted and enhanced the dict operations to make them compatible with the new DictType
camoroso2024-05-19 01:38:07 +02:00
d6a1607041
The content of round bracket now returns an expressione term. This way the content is decoupled from external terms.
camoroso2024-05-19 01:34:07 +02:00
4d43ab2c2f
context.go: setVar() renamed as UnsafeSetVar()
camoroso2024-05-19 01:27:44 +02:00
9bd4a0ba23
utils.go:fromGenericAny() now supports also ListType and DictType
camoroso2024-05-19 01:21:06 +02:00
2b184cf3f2
operand-map.go replaced by operand-dict.go
camoroso2024-05-19 01:20:04 +02:00
263e419d9a
operand-map.go: to be removed
camoroso2024-05-18 08:54:18 +02:00