This website requires JavaScript.
7a0ba26aa3
some expression and data files used by tests
Celestino Amoroso
2024-05-03 08:48:29 +0200
0bca3333aa
parser_test.go: added tests from 143 to 159 (global coverage is 74.4%)
Celestino Amoroso
2024-05-03 06:38:30 +0200
02b7a6df6c
improved the string representation of the content
Celestino Amoroso
2024-05-03 06:33:47 +0200
8d9963207e
operator-context.go: now supports contextes that implement the Formatter interface
Celestino Amoroso
2024-05-03 06:31:36 +0200
f9486fa1bd
operand-list.go: adding of String() function
Celestino Amoroso
2024-05-03 06:29:18 +0200
360ebce015
improved usability of the list iterator
Celestino Amoroso
2024-05-03 06:26:17 +0200
dc9eca83e8
operator-builtin.go: Fixed a problem with the list of forms due to changing []any in ListType
Celestino Amoroso
2024-05-03 05:30:58 +0200
2c55167dd0
operator-fraction.go: the constructor newFraction() does call simplifyIntegers() on the num e den
Celestino Amoroso
2024-05-02 11:04:20 +0200
c124e880c4
operator-context.go: now it returns function keys too
Celestino Amoroso
2024-05-02 11:02:01 +0200
4db015e4b1
func-math.go: Fixed mul() error: the previous version recursively called doAdd() instead of doMul()
Celestino Amoroso
2024-05-02 10:58:05 +0200
5809de419f
func-math.go: mul() and add() now support fractions
Celestino Amoroso
2024-05-01 21:53:54 +0200
7c748f0e31
formatter.go: format options added
Celestino Amoroso
2024-05-01 21:53:03 +0200
cd6b7982ee
sum and prod now support fraction too
Celestino Amoroso
2024-05-01 21:51:43 +0200
e00886b1ed
operator-fraction.go: many new functions supporting fraction operations
Celestino Amoroso
2024-05-01 21:49:15 +0200
49904f9097
the new ListType type takes the of []any
Celestino Amoroso
2024-05-01 21:47:27 +0200
2d0d03b975
utils.go: numAsFloat() now supports also fraction
Celestino Amoroso
2024-05-01 21:44:55 +0200
8cb048edb0
common-type-names.go: typeFraction added
Celestino Amoroso
2024-05-01 21:43:42 +0200
cb3d8827fa
operator-fraction.go -- new data-type and operator fraction
Celestino Amoroso
2024-05-01 09:48:09 +0200
4c83764332
term.go: priFraction added
Celestino Amoroso
2024-05-01 09:47:28 +0200
c0c2ab8b4e
func-bolerplate.bash: generate Go source for a new functions module
Celestino Amoroso
2024-05-01 07:13:52 +0200
288e93d708
func-string.go: string utils module
Celestino Amoroso
2024-05-01 07:10:59 +0200
92e862da19
common definitions collections
Celestino Amoroso
2024-05-01 07:10:11 +0200
dc6975e56c
term.go: better error message in term.toInt()
Celestino Amoroso
2024-05-01 07:09:18 +0200
6a2d3c53fd
func-common.go common-errors.go
Celestino Amoroso
2024-05-01 07:09:01 +0200
5643a57bcc
utils.go: new function toInt() converts any(int64) to int
Celestino Amoroso
2024-05-01 07:07:36 +0200
52fb398cd8
data-cursor.go: deep changes to better handle the data-source
Celestino Amoroso
2024-05-01 05:59:54 +0200
cdbe3dfc22
commented tracing code
Celestino Amoroso
2024-05-01 05:57:08 +0200
7aabd068ed
func-math.go: add() now supports general iterators. TODO: do the same thing to mul()
Celestino Amoroso
2024-05-01 05:55:37 +0200
924f5da725
Clone functions now filter ref variables to avoid to pass them to child context
Celestino Amoroso
2024-05-01 05:53:56 +0200
d657cbb51e
func-os.go: fixed the handling of err==io.EOF
Celestino Amoroso
2024-05-01 05:48:37 +0200
be874503ec
iterator.go: new error function errInvalidDataSource()
Celestino Amoroso
2024-05-01 05:46:24 +0200
056d42d328
utils.go: Copy and Clone maps with filter function. Also added isIterator().
Celestino Amoroso
2024-05-01 05:45:10 +0200
aa66d07caa
Iterators now support generic operation interface based on methods HasOperation() and CallOperation(). Also fixed mul() function that called doAdd() instead of doMul().
Celestino Amoroso
2024-04-28 06:45:20 +0200
fc0e1ffaee
New function isFunctor()
Celestino Amoroso
2024-04-28 06:43:57 +0200
bf8f1a175f
modules are now represented by a struct that holds import-function, module description and importa status. It is also available the new function IterateModules() to explore all modules.
Celestino Amoroso
2024-04-28 05:41:13 +0200
6dd8283308
function-register.go module-register.go
Celestino Amoroso
2024-04-28 04:52:02 +0200
06ab303b9e
accessing to the Reset() and Clean()functions of an iterator is now done by identifiers, i.e. reset, not by string, i.e. "reset".
Celestino Amoroso
2024-04-28 04:44:19 +0200
2ccbdb2254
Fixed Clean() and added error message when calling optional missing functions
Celestino Amoroso
2024-04-28 04:41:43 +0200
c5fca70cfc
operator-length.go: Fix: the returned value was int, instead of int64
Celestino Amoroso
2024-04-27 22:37:56 +0200
895778f236
operator-dot.go: '*dataCursor' case added; to be enhanced
Celestino Amoroso
2024-04-27 22:34:23 +0200
81c85afbea
operand-iterator.go: accepts two new optional functions 'reset' and 'clean' from data-source
Celestino Amoroso
2024-04-27 22:32:57 +0200
354cb79580
data-cursor.go: added Reset() e Clean() functions
Celestino Amoroso
2024-04-27 22:31:14 +0200
327bffa01f
symbol.go: typo
Celestino Amoroso
2024-04-27 22:30:18 +0200
c99be491df
operator-dot.go: refactoring
Celestino Amoroso
2024-04-27 14:44:52 +0200
60effe8f1b
new prefix operator 'include'
Celestino Amoroso
2024-04-27 09:48:45 +0200
824b9382be
termo.go: changed the name of a variable
Celestino Amoroso
2024-04-27 09:48:05 +0200
9ce6b7255b
corrected a comment
Celestino Amoroso
2024-04-27 09:47:24 +0200
9dbf472630
helpers.go: two new functions: EvalStream() and EvalFile()
Celestino Amoroso
2024-04-27 09:46:03 +0200
723976b37e
merged with datasource-context
v0.5.0
Celestino Amoroso
2024-04-27 06:19:12 +0200
361b84f31f
moved the exportVar() and exportFunc() functions from data-cursor.go to context-helpers.go
Celestino Amoroso
2024-04-27 06:16:11 +0200
70892aa980
removed commented code
Celestino Amoroso
2024-04-27 06:14:09 +0200
10eec286fa
new operator '111123' that returns the content of the current context or the context of an iterator
Celestino Amoroso
2024-04-27 06:12:30 +0200
894b1884eb
temporary
Celestino Amoroso
2024-04-26 21:03:22 +0200
d2bab5fd9e
context clone & export function moved from operand-func.go to context-helpers.go
Celestino Amoroso
2024-04-26 20:12:56 +0200
f94f369547
context clone & export function moved from operand-func.go to context-helpers.go
Celestino Amoroso
2024-04-26 20:12:56 +0200
107ec4958f
operator-length.go: the prefix operator '#' now accept iterator oeprand; it returns the index of the current item
Celestino Amoroso
2024-04-26 08:04:55 +0200
a22047e84e
operand-func.go: removed commented code
Celestino Amoroso
2024-04-26 08:02:52 +0200
80b7d5b988
operand-dict.go: removed commented code
Celestino Amoroso
2024-04-26 08:02:22 +0200
2ab896bbac
the dataCursor struct has been moved fro operand-iterator.go to the new file data-cursor.go
Celestino Amoroso
2024-04-26 08:01:35 +0200
62e16219f7
func-math.go/add: now supports the general iterator interface
Celestino Amoroso
2024-04-26 04:47:59 +0200
750c660331
first working implementation of iterators and some fixes to the parser around lists analysis
Celestino Amoroso
2024-04-26 04:45:42 +0200
7a88449cd1
updated some error messages; add some tests on the dict data-type; Use of reflect.DeepEqual() to compare the test results with the desired results.
Celestino Amoroso
2024-04-26 04:43:36 +0200
b14dc2f1ee
provisional implementation of the postfix ++ operator
Celestino Amoroso
2024-04-26 04:37:50 +0200
d354102c6a
adapted to the new GetFuncInfo() specification
Celestino Amoroso
2024-04-26 04:36:03 +0200
761ec868e6
operator-assign.go: little refactor
Celestino Amoroso
2024-04-26 04:31:31 +0200
7941c2dfec
the FlatArrayIterator has been moved to the new file iter-list.go
Celestino Amoroso
2024-04-26 04:30:43 +0200
ebb2811ed3
context.go: added exists return value to the GetFuncInfo()
Celestino Amoroso
2024-04-26 04:28:50 +0200
75c0c0f681
Fix ast.go: the insert() didn't check the returned error
Celestino Amoroso
2024-04-26 04:26:20 +0200
268a968548
term.go: added two new priorities (priIterValue and priPrePost); new function term.symbol())
Celestino Amoroso
2024-04-26 04:23:39 +0200
323308d86f
expressions now support dict data-type
Celestino Amoroso
2024-04-21 14:24:56 +0200
b28d6a8f02
commented out a test for a future new operator based on the caret symbol
Celestino Amoroso
2024-04-21 07:12:59 +0200
ab82bcf1ef
preparation for the definition of the iterators
Celestino Amoroso
2024-04-21 07:11:58 +0200
a628bfac39
New symbol '^' (caret). The scanner now returns an error token if can't recognise a symbol.
Celestino Amoroso
2024-04-21 07:10:19 +0200
d1122da566
coalesce operators '??' and '?=' now accepts function definitions too
Celestino Amoroso
2024-04-20 09:40:07 +0200
6ae5ca34ed
expr_test.go, more tests on the int() function
Celestino Amoroso
2024-04-20 08:50:05 +0200
730b59e6d3
funcs_test.go, more tests on the int() function
Celestino Amoroso
2024-04-20 07:41:58 +0200
f198ba47e1
new convert function int()
Celestino Amoroso
2024-04-20 07:29:42 +0200
943ef3327e
empty expressions no more return error, now they return nil
Celestino Amoroso
2024-04-20 06:56:26 +0200
475ef3c80a
parser_test.go: test added on isNil() function
Celestino Amoroso
2024-04-20 06:54:51 +0200
3c0307524b
simple-func-store.go: now imports 'builtins' module on creation
Celestino Amoroso
2024-04-20 06:53:30 +0200
c27e487fc3
new function isNil()
Celestino Amoroso
2024-04-20 06:52:33 +0200
ed973c9b7b
fixed all errors in test files
Celestino Amoroso
2024-04-20 06:04:35 +0200
15bbfacd47
all constant value are now stored in the same data struct (same constructor). Also nil const added
Celestino Amoroso
2024-04-20 05:39:49 +0200
04f934ab04
'nil' keyword added
Celestino Amoroso
2024-04-20 05:38:00 +0200
ba1d887a05
commit
hook-training
Celestino Amoroso
2024-04-20 04:02:51 +0200
faff5a7e2c
hook_test next commit
Celestino Amoroso
2024-04-19 15:02:53 +0200
36f6846a3f
hook_test first commit
Celestino Amoroso
2024-04-19 15:00:20 +0200
591b4ffc19
Expr.adoc: 'work in progress' added
Celestino Amoroso
2024-04-19 14:30:40 +0200
fe9ab9ebd2
Expr.adoc, corrected a typo
Celestino Amoroso
2024-04-19 09:20:01 +0200
7198749063
new operator dot '.' used to select an item or character from a list or a string respectively
Celestino Amoroso
2024-04-19 09:05:26 +0200
b76481bbf2
new operator 'builtin'
Celestino Amoroso
2024-04-19 00:19:11 +0200
4f05e5c90a
funcs-math.go registered as 'math.arith'
Celestino Amoroso
2024-04-19 00:18:23 +0200
8ad25afdc4
function register
Celestino Amoroso
2024-04-19 00:16:49 +0200
54bc759f70
expressions now support intger value in bin (0b), oct (0o), and hex (0x) form
Celestino Amoroso
2024-04-17 14:15:50 +0200
b6887af77a
added the prefix operator '#' (length of string and array)
Celestino Amoroso
2024-04-17 07:12:32 +0200
353d495c50
two new operators added: '<<' and '>>
Celestino Amoroso
2024-04-16 03:54:50 +0200
f45b2c0a88
func-os.go: set of functions to work with files
Celestino Amoroso
2024-04-15 07:01:34 +0200
624e3ac0f2
parser_test.go: changed ImportImportFunc(s)
Celestino Amoroso
2024-04-15 07:00:40 +0200
35fcbd2bce
expr_test.go: added a test in passing functions as parameters
Celestino Amoroso
2024-04-15 06:59:27 +0200
2150181303
func-import.go: renamed ImportImportFunc as ImportImportFuncs
Celestino Amoroso
2024-04-15 06:57:29 +0200