Commit Graph

  • 8144122d2c fixed some defects in the iter-list implementation v0.17.0 camoroso 2024-06-05 08:06:39 +02:00
  • 188ea354ee it-range.go renamed as it-range.go.unused camoroso 2024-06-05 08:05:42 +02:00
  • 2fc6bbfe10 removed old simple vars and funcs context implementations camoroso 2024-06-05 05:54:12 +02:00
  • 847d85605e removed unused commented code camoroso 2024-06-05 05:53:02 +02:00
  • 9c29392389 changes to adapt errors using typeName() functions camoroso 2024-06-05 05:52:27 +02:00
  • a7b6e6f8d2 t_list_test.go: some tests added camoroso 2024-06-05 05:50:37 +02:00
  • a16ac70e4a t_dict_test.go: some tests added camoroso 2024-06-05 05:49:07 +02:00
  • ab2e3f0528 use of typeName() in error messages camoroso 2024-06-05 05:48:02 +02:00
  • 974835a8ef utils.go/typeName() and formatter.go/getTipeName() have been merged in formatter.go/typeName() camoroso 2024-06-05 05:42:37 +02:00
  • 457a656073 tests on collection's item assignments and some other changes camoroso 2024-06-05 05:09:13 +02:00
  • 9e63e1402e t_parser_test.go: Expr's type names camoroso 2024-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 camoroso 2024-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 camoroso 2024-06-05 05:03:37 +02:00
  • ca12722c93 utils.go: new function typeName() camoroso 2024-06-05 05:01:34 +02:00
  • d96123ab02 The assign operator '=' can now set items in ListType and DictType camoroso 2024-06-04 11:07:35 +02:00
  • f2d6d63017 fixed an error message (test nr 97) camoroso 2024-06-04 11:04:59 +02:00
  • 905b2af7fa setItem() function camoroso 2024-06-04 11:04:00 +02:00
  • 9307473d08 Call() implementation can invoke varaibles holding functors camoroso 2024-06-04 11:03:24 +02:00
  • 10a596a4cd parser.go: commented out some useless code camoroso 2024-06-04 11:02:26 +02:00
  • 609fb21505 global-context.go: variables holding function values can be invoked as function now camoroso 2024-06-04 11:01:04 +02:00
  • 7650a4a441 DictType moved from operand-dict.go to the dict-type.go file camoroso 2024-06-04 10:59:25 +02:00
  • f51d6023ae Doc: start of function documentation camoroso 2024-06-03 06:27:14 +02:00
  • 99454227d5 little changes to test source files camoroso 2024-06-02 12:33:32 +02:00
  • 75358e5d35 func-fmt.go: print() and println() camoroso 2024-06-02 12:32:08 +02:00
  • 51b272dda8 func-string.go: ad least one extra prefix and suffix for startsWithStr() and endsWitchStr() camoroso 2024-06-02 12:30:17 +02:00
  • 7f282e5460 func-string.go: the second parameter joinStr() flags changed as pfRepeat camoroso 2024-06-02 11:56:17 +02:00
  • cff21b40f7 typeFilepath changed camoroso 2024-06-02 11:54:43 +02:00
  • 4f432da2b9 typeFilepath and typeDirpath renamed as paramFilepath and paramDirpath respectively camoroso 2024-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 camoroso 2024-06-02 11:30:24 +02:00
  • c04678c426 simple-store.go: duplicated name removed from funcs list camoroso 2024-06-02 11:12:53 +02:00
  • 9bba40f155 Expr's functions now support parameters with default value v0.16.0 camoroso 2024-06-01 19:56:40 +02:00
  • f66cd1fdb1 New test file for specific code section or data type camoroso 2024-06-01 16:31:50 +02:00
  • f41ea96d17 Expr functions now act as closures v0.15.0 camoroso 2024-05-30 07:13:26 +02:00
  • d84e690ef3 deep list inclusion and item membership implemented v0.14.0 camoroso 2024-05-29 13:03:58 +02:00
  • 4b25a07699 commented code removed camoroso 2024-05-28 07:28:33 +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) camoroso 2024-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 camoroso 2024-05-26 06:30:42 +02:00
  • 2c87d6bf9e Eprx now supports range of indeces to extract parts of strings or lists camoroso 2024-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 camoroso 2024-05-25 03:35:17 +02:00
  • fa136cb70b parser.go: square brackets are also allowed after a variable camoroso 2024-05-25 03:32:13 +02:00
  • 76dd01afcd strings_test.go: test nr 5,6 fixed camoroso 2024-05-25 03:30:26 +02:00
  • 4283fab816 list_test.go: test nr 15,16,17 fixed camoroso 2024-05-25 03:28:01 +02:00
  • 03d4c192c2 new syntax to get items from collection: collection[index]. Supported collections are string, list and dict camoroso 2024-05-24 22:51:01 +02:00
  • e5f63c3d9d function definition and usage rationalized v0.13.0 camoroso 2024-05-24 06:28:48 +02:00
  • d545a35acf local var renamed camoroso 2024-05-24 04:23:03 +02:00
  • e4275e2cb6 simple-var-store.go and simple-func-store.go merged in a single file named simple-store.go camoroso 2024-05-23 07:46:31 +02:00
  • 1ff5770264 New interface and implementation to model function parameters camoroso 2024-05-22 20:52:44 +02:00
  • ba32e2dccf Doc: more details on some operators camoroso 2024-05-20 15:50:45 +02:00
  • f22b5a6f0b Doc: more details on some operators v0.12.0 camoroso 2024-05-20 06:59:49 +02:00
  • 7c8dbb0ac7 Added virtual symbol SymVariable translated from general real SymIdentifier symbol camoroso 2024-05-20 06:05:24 +02:00
  • e5c5920db0 parser_test.go: incompatible type error corrected camoroso 2024-05-20 05:32:28 +02:00
  • 61efdb4eef operator-fraction.go: Typer interface implementation camoroso 2024-05-20 05:31:20 +02:00
  • 82ec78719d operand-list.go: ToString() now can handle the Truncate option camoroso 2024-05-20 05:30:26 +02:00
  • 554ff1a9dd operator-sum.go: better type checking when adding fractions camoroso 2024-05-20 05:27:44 +02:00
  • 6bb891e09d term.go: Error messagge about incompatible types now truncates long values camoroso 2024-05-20 05:26:33 +02:00
  • 1c4ffd7d64 formatter.go: Truncate function and number type names camoroso 2024-05-20 05:25:04 +02:00
  • b92b19e1dd New interface to Typer: the function TypeName() returns a more readable type name camoroso 2024-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. camoroso 2024-05-19 02:20:36 +02:00
  • 6c14c07d66 operand-iterator.go: adapted to the new DictType camoroso 2024-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 camoroso 2024-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 camoroso 2024-05-19 01:42:15 +02:00
  • 24a25bbf94 adapted and enhanced the dict operations to make them compatible with the new DictType camoroso 2024-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. camoroso 2024-05-19 01:34:07 +02:00
  • 4d43ab2c2f context.go: setVar() renamed as UnsafeSetVar() camoroso 2024-05-19 01:27:44 +02:00
  • 9bd4a0ba23 utils.go:fromGenericAny() now supports also ListType and DictType camoroso 2024-05-19 01:21:06 +02:00
  • 2b184cf3f2 operand-map.go replaced by operand-dict.go camoroso 2024-05-19 01:20:04 +02:00
  • 263e419d9a operand-map.go: to be removed camoroso 2024-05-18 08:54:18 +02:00
  • 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 camoroso 2024-05-18 07:47:41 +02:00
  • 14bb9e942b operator-fraction.go: added link to a tutorial about fractions camoroso 2024-05-18 07:07:17 +02:00
  • 9451958218 utils_test.go: new test file camoroso 2024-05-18 07:06:06 +02:00
  • 91fdc1926e Doc: updated last change date and time camoroso 2024-05-17 15:48:17 +02:00
  • 9a3abdf1b6 Doc: more details on the syntax of the selector and variable default operators camoroso 2024-05-17 15:46:56 +02:00
  • ac3e690f87 Doc: more details on the syntax of the dictionaries, variables and multi-expressions camoroso 2024-05-17 07:31:13 +02:00
  • f0a152a17a Doc: more details on the syntax of the numbers, strings and boolean v0.10.1 camoroso 2024-05-16 07:11:20 +02:00
  • ca89931ca9 Doc: more details on the syntax of the numbers camoroso 2024-05-15 22:06:26 +02:00
  • d2e8aed4f7 parser_test.go: test on divisopn by-zero camoroso 2024-05-15 22:05:49 +02:00
  • 8138cd2a80 operand-func.go: commented the errors moved to common-errors..go camoroso 2024-05-15 22:04:38 +02:00
  • 6786666cf4 funcs_test.go: added some tests camoroso 2024-05-15 22:03:41 +02:00
  • 35e794701a func-string.go: commented out the param count check camoroso 2024-05-15 22:03:03 +02:00
  • 52ef134be6 func-base.go: commented out the param count check camoroso 2024-05-15 22:02:07 +02:00
  • 624318d84e common-errors.go: moved here some errors camoroso 2024-05-15 22:01:13 +02:00
  • aa1338cd51 Fixed special convertion case from decimal 'x.y()' to fraction camoroso 2024-05-15 06:45:40 +02:00
  • c9db4b84e3 funcs_test.go: added some tests v0.10.0 camoroso 2024-05-14 05:41:53 +02:00
  • e7e9330b71 scanner: Fixed decimal number parser; it didn't save parenthesis around period part camoroso 2024-05-14 05:41:10 +02:00
  • 8eb25bbc86 operand-const.go -> operand-literal.go camoroso 2024-05-14 04:59:55 +02:00
  • efc92d434b the sum operation now supports dicts too camoroso 2024-05-14 04:56:24 +02:00
  • 4151f3f5e2 literals of rational number, e.g. 1.2(3), are now supported and are evaluated as fractions camoroso 2024-05-14 04:55:16 +02:00
  • f028485caa added functions to get the fenerating fraction of a decimal number v0.9.0 camoroso 2024-05-13 14:24:37 +02:00
  • ab07405cda common-errors.go: added errDivisionByZero() camoroso 2024-05-13 14:23:21 +02:00
  • 47be0c66cf Doc: some typo and better examples camoroso 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. camoroso 2024-05-11 10:45:38 +02:00
  • 0a9543543d Remove the unused 'parent' param from the function newTerm(). camoroso 2024-05-11 06:41:06 +02:00
  • 775751c67b Doc: string examples camoroso 2024-05-11 06:35:32 +02:00
  • 4aaffd6c44 dict: implemented length of dict v0.8.0 camoroso 2024-05-10 09:25:18 +02:00
  • 924051fbcd extended funcs and list tests camoroso 2024-05-10 09:18:32 +02:00
  • 5a9b6525a2 new function isRational() that return true is the passed value is integere or fraction camoroso 2024-05-10 09:17:51 +02:00
  • 8c66d90532 operator-length.go: fixed length of list camoroso 2024-05-10 09:16:31 +02:00
  • 4aa0113c6a new string test file v0.7.1 camoroso 2024-05-10 07:33:59 +02:00
  • d035fa0d5e operator-dot.go: fixed string index camoroso 2024-05-10 07:32:45 +02:00
  • cf73b5c98d Doc: add link to dev-expr download page camoroso 2024-05-10 06:39:48 +02:00