|
4151f3f5e2
|
literals of rational number, e.g. 1.2(3), are now supported and are evaluated as fractions
|
2024-05-14 04:55:16 +02:00 |
|
|
f028485caa
|
added functions to get the fenerating fraction of a decimal number
|
2024-05-13 14:24:37 +02:00 |
|
|
ab07405cda
|
common-errors.go: added errDivisionByZero()
|
2024-05-13 14:23:21 +02:00 |
|
|
47be0c66cf
|
Doc: some typo and better examples
|
2024-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.
|
2024-05-11 10:45:38 +02:00 |
|
|
0a9543543d
|
Remove the unused 'parent' param from the function newTerm().
|
2024-05-11 06:41:06 +02:00 |
|
|
775751c67b
|
Doc: string examples
|
2024-05-11 06:35:32 +02:00 |
|
|
4aaffd6c44
|
dict: implemented length of dict
|
2024-05-10 09:25:18 +02:00 |
|
|
924051fbcd
|
extended funcs and list tests
|
2024-05-10 09:18:32 +02:00 |
|
|
5a9b6525a2
|
new function isRational() that return true is the passed value is integere or fraction
|
2024-05-10 09:17:51 +02:00 |
|
|
8c66d90532
|
operator-length.go: fixed length of list
|
2024-05-10 09:16:31 +02:00 |
|
|
4aa0113c6a
|
new string test file
|
2024-05-10 07:33:59 +02:00 |
|
|
d035fa0d5e
|
operator-dot.go: fixed string index
|
2024-05-10 07:32:45 +02:00 |
|
|
cf73b5c98d
|
Doc: add link to dev-expr download page
|
2024-05-10 06:39:48 +02:00 |
|
|
8346e28340
|
Doc: fixed some typo and added some list details
|
2024-05-10 04:49:03 +02:00 |
|
|
9c2eca40d7
|
utils.go: added IsBool() and IsFract()
|
2024-05-10 04:48:13 +02:00 |
|
|
c3198e4c79
|
parser_test.go: did not show the correct section name
|
2024-05-10 04:47:34 +02:00 |
|
|
99e0190b9c
|
operator-dot.go: fixed the index range checking
|
2024-05-10 04:45:51 +02:00 |
|
|
d4f63a3837
|
funcs_test.go: fixed and extended
|
2024-05-10 04:44:08 +02:00 |
|
|
389d48b646
|
func-base.go: added functions to check data-type of a value
|
2024-05-10 04:43:14 +02:00 |
|
|
1f7b9131fc
|
The 'last' variable now also receives the value of the final expression
|
2024-05-10 04:41:26 +02:00 |
|
|
dce49fd2b7
|
Doc: fractions and dictionaries
|
2024-05-09 07:20:22 +02:00 |
|
|
8ee0bb5701
|
Some data-type check functions (e.g. IsInteger()) exported
|
2024-05-08 07:53:01 +02:00 |
|
|
b2b0bb04c5
|
formatter.go: number base options added
|
2024-05-08 07:51:38 +02:00 |
|
|
f3abf5e77c
|
Doc: dev-expr description updated
|
2024-05-08 07:51:01 +02:00 |
|
|
34b7799177
|
parser_test.go: test added (mixed number types)
|
2024-05-07 07:23:38 +02:00 |
|
|
8c3c54913a
|
Doc: dev-expr introduction
|
2024-05-07 07:22:32 +02:00 |
|
|
5910345c08
|
operator-{sum,prod}.go: Fixed sum and prod operation with a fraction and a float
|
2024-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
|
2024-05-06 17:31:12 +02:00 |
|
|
6ef468408c
|
operator-sum.go: Fixed sum of fraction and float
|
2024-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
|
2024-05-06 16:01:50 +02:00 |
|
|
71ab417a56
|
funcs_test.go: added many new tests
|
2024-05-06 15:32:44 +02:00 |
|
|
7cfb89c25c
|
parser_test.go: removed commented code
|
2024-05-06 15:32:00 +02:00 |
|
|
569dbfda9d
|
expr_test.go: removed temporary test
|
2024-05-06 15:31:28 +02:00 |
|
|
f342dfe9f3
|
operand-list.go: ListType constructor functions newList() and newListA()
|
2024-05-06 15:30:23 +02:00 |
|
|
5378952394
|
func-string.go: added three new functions (splitStr, startsWithStr, endsWithString) to the 'string' builtin module
|
2024-05-06 15:29:13 +02:00 |
|
|
a9d6a82011
|
operand-func.go: improved error report when functions reveive less params than expected
|
2024-05-06 15:26:45 +02:00 |
|
|
43b74131fb
|
dict_test.go: first draft
|
2024-05-06 10:41:08 +02:00 |
|
|
cb0eac54b2
|
list_test.go: new tests on member access
|
2024-05-06 10:40:19 +02:00 |
|
|
b219b55878
|
parser_test.go: refactored
|
2024-05-06 10:39:21 +02:00 |
|
|
56c86f917e
|
funcs_test.go: Added Setenv("EXPR_PATH",".")
|
2024-05-06 10:38:45 +02:00 |
|
|
539a4b44e9
|
new test files and some refactorings
|
2024-05-06 05:52:25 +02:00 |
|
|
74df927179
|
func-import.go: renamed include() as importAll()
|
2024-05-06 05:50:36 +02:00 |
|
|
510966c497
|
operator-insert.go: replaced []any with ListType
|
2024-05-06 04:43:29 +02:00 |
|
|
c977e82d9e
|
doc/Expr.adoc: description of the selector operator; added operators to the priority table
|
2024-05-06 04:24:27 +02:00 |
|
|
903f1ae1ce
|
adjusted some error messages and added the section name in logs
|
2024-05-06 04:21:50 +02:00 |
|
|
9c66056c18
|
func-math.go: improved error messages reporting wrong datatype of items
|
2024-05-06 04:18:04 +02:00 |
|
|
f55a48aa26
|
operator-dot.go: replaced []any with *ListType
|
2024-05-06 04:15:46 +02:00 |
|
|
434ddee733
|
operator-context.go: changed priPrePost with priIncDec
|
2024-05-06 04:14:54 +02:00 |
|
|
fcced6149f
|
operator-post-inc.go: changed priPrePost with priIncDec
|
2024-05-06 04:14:03 +02:00 |
|