c39970fa7e
new operator 'in' added. It check if an item is member of a list, or if a key is contained in a dictionary
v0.11.0
camoroso2024-05-18 07:47:41 +02:00
14bb9e942b
operator-fraction.go: added link to a tutorial about fractions
camoroso2024-05-18 07:07:17 +02:00
9451958218
utils_test.go: new test file
camoroso2024-05-18 07:06:06 +02:00
91fdc1926e
Doc: updated last change date and time
camoroso2024-05-17 15:48:17 +02:00
9a3abdf1b6
Doc: more details on the syntax of the selector and variable default operators
camoroso2024-05-17 15:46:56 +02:00
ac3e690f87
Doc: more details on the syntax of the dictionaries, variables and multi-expressions
camoroso2024-05-17 07:31:13 +02:00
f0a152a17a
Doc: more details on the syntax of the numbers, strings and boolean
v0.10.1
camoroso2024-05-16 07:11:20 +02:00
ca89931ca9
Doc: more details on the syntax of the numbers
camoroso2024-05-15 22:06:26 +02:00
d2e8aed4f7
parser_test.go: test on divisopn by-zero
camoroso2024-05-15 22:05:49 +02:00
8138cd2a80
operand-func.go: commented the errors moved to common-errors..go
camoroso2024-05-15 22:04:38 +02:00
6786666cf4
funcs_test.go: added some tests
camoroso2024-05-15 22:03:41 +02:00
35e794701a
func-string.go: commented out the param count check
camoroso2024-05-15 22:03:03 +02:00
52ef134be6
func-base.go: commented out the param count check
camoroso2024-05-15 22:02:07 +02:00
624318d84e
common-errors.go: moved here some errors
camoroso2024-05-15 22:01:13 +02:00
aa1338cd51
Fixed special convertion case from decimal 'x.y()' to fraction
camoroso2024-05-15 06:45:40 +02:00
47be0c66cf
Doc: some typo and better examples
camoroso2024-05-11 20:14:54 +02:00
50e7168214
Since now builtin functions are registared in a new global context. This reduces the effort to copy the whole set of builtin functions in the context of a function call; only the called function will be copied, if it is global.
camoroso2024-05-11 10:45:38 +02:00
0a9543543d
Remove the unused 'parent' param from the function newTerm().
camoroso2024-05-11 06:41:06 +02:00
5910345c08
operator-{sum,prod}.go: Fixed sum and prod operation with a fraction and a float
camoroso2024-05-06 17:32:39 +02:00
8b4dad1381
utils.go: new function isNumOrFract(x); it returns true if x is a float, an integer, ora a fraction
camoroso2024-05-06 17:31:12 +02:00
6ef468408c
operator-sum.go: Fixed sum of fraction and float
camoroso2024-05-06 17:16:30 +02:00
3a30d890c6
operator-assign.go: improvements that allow to define function aliases (TODO: maybe *funcDefFunctor else-if section can be removed
camoroso2024-05-06 16:01:50 +02:00
71ab417a56
funcs_test.go: added many new tests
camoroso2024-05-06 15:32:44 +02:00
5378952394
func-string.go: added three new functions (splitStr, startsWithStr, endsWithString) to the 'string' builtin module
camoroso2024-05-06 15:29:13 +02:00
a9d6a82011
operand-func.go: improved error report when functions reveive less params than expected
camoroso2024-05-06 15:26:45 +02:00
f55a48aa26
operator-dot.go: replaced []any with *ListType
camoroso2024-05-06 04:15:46 +02:00
434ddee733
operator-context.go: changed priPrePost with priIncDec
camoroso2024-05-06 04:14:54 +02:00
fcced6149f
operator-post-inc.go: changed priPrePost with priIncDec
camoroso2024-05-06 04:14:03 +02:00
1f0f9cae22
term.go: priPrePost renamed as priIncDec
camoroso2024-05-06 04:11:43 +02:00
1d8569d3a9
the function call procedure now check the number of actual parameters against the numer of formal parameters
camoroso2024-05-04 22:35:03 +02:00
0fdd51049d
parser.go: simplified the parser of the function parameters
camoroso2024-05-04 19:10:02 +02:00
f9ed5776cd
token.go: function IsSymbol()
camoroso2024-05-04 19:08:02 +02:00
a2c0a24494
added symbol '..' and '...'; improved some error reports in parser.go
camoroso2024-05-04 18:47:00 +02:00
2c5f02cc69
list iterators now support start, stop e step
camoroso2024-05-04 08:07:49 +02:00
d9fbe6f36d
data-cursor.go: now supports the 'index' command
camoroso2024-05-04 01:24:13 +02:00
e6174aca82
operator-length.go: now returns index+1 when used with iterators; that is the number of iterations
camoroso2024-05-04 01:23:32 +02:00
a736bba2c7
iter-list.go: now supports the 'index' command
camoroso2024-05-04 01:21:36 +02:00