camoroso
8e596d5979
several changes:
...
1. moved scan/symbol.go to new package sym and adapted all files that reference Symbol type and its values.
2. new type interval defined by begin, end and step values.
3. replaced operator-range.go with operator-interval.go.
4. replaced range operator begin:end with begin..end..step.
5. new implementation of sub-collection extraction based on new interval literal.
2026-07-27 16:01:52 +02:00
camoroso
2f616f349b
at operator return -1 when fails in lists and arrays; insert operators (<< and >>) changes che container if it is a variable
2026-07-16 07:25:15 +02:00
camoroso
bf2c7df0f0
forgot to add the array module. Separated tests on array and list from operators
2026-07-14 06:49:50 +02:00
camoroso
6b561fea45
array and linked-list: at operator
2026-07-13 15:10:51 +02:00
camoroso
daca05e637
linked-list: sum and in operators
2026-07-13 14:27:18 +02:00
camoroso
072fd9af39
completed list-type to array-type conversion and fixed common test module
2026-07-13 10:42:17 +02:00
camoroso
77f36642b4
The name of 'list' has been changed to 'array'; from now on, 'list' will refer to the linked list.
2026-07-12 07:35:28 +02:00
camoroso
b6da9bcad4
refactored data-types to reduce plugin sizes
2026-06-08 07:02:56 +02:00
camoroso
1aea1c14d2
LinkedList: added support for index and range extraction
2026-05-19 06:42:45 +02:00
camoroso
081395be5f
linked-list-iterator and context operator $$ enhancement
2026-05-18 09:50:06 +02:00
camoroso
a8a5d6aaa6
Linked-List: constructor NewLinkedListA() accepts any type of int and float
2026-05-18 06:24:59 +02:00
camoroso
84b255a51b
new type LinkedList, preliminary implementation
2026-05-17 22:43:27 +02:00
camoroso
e6844ad1e8
alias operators: '<<' same as '<+', '>>' same as '+>'. Insert and append operation optimized with linked lists
2026-05-16 17:18:23 +02:00
camoroso
99c1adc434
copyright header updated to 2026
2026-05-06 09:27:42 +02:00
camoroso
4d910dd069
moved a subset of source file to the kern package
2026-04-27 19:43:37 +02:00
camoroso
eccb0c4dc9
Added new special operators like &= and <<=.
...
Also made a litle change to scanner function moveOn(): now it moves on
the last char passed and only if there are more than one chars.
2024-12-29 19:26:02 +01:00
camoroso
d91e7eb979
The list operator '<<' (append) and '>>' (prepend) have been replaced
...
with the new operators '<+' and '+>' respectively.
'<<' and '>>' are now used only for left and right binary shit
respectively. Further, their priority has been increased moving them to
a higher priority than that of the assignment operator.
2024-12-28 09:17:27 +01:00
camoroso
6ee21e10af
New, more flexible, parser context datatype that includes and extends
...
the previous flags allowForest and allowVarRef.
Added binary operator (work in progress).
Better implementation of +=,-=,*=, and /= (new) operators.
2024-12-19 14:48:27 +01:00
camoroso
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
camoroso
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
camoroso
d1b468f35b
t_list_test.go: new test cases added
2024-06-19 09:24:50 +02:00
camoroso
80d47879e9
t_list_test.go: removed commented code
2024-06-07 08:54:59 +02:00
camoroso
a7b6e6f8d2
t_list_test.go: some tests added
2024-06-05 05:50:37 +02:00
camoroso
457a656073
tests on collection's item assignments and some other changes
2024-06-05 05:09:13 +02:00
camoroso
d96123ab02
The assign operator '=' can now set items in ListType and DictType
2024-06-04 11:07:35 +02:00
camoroso
f66cd1fdb1
New test file for specific code section or data type
2024-06-01 16:31:50 +02:00
camoroso
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)
2024-05-28 07:26:05 +02:00