Commit Graph

504 Commits

Author SHA1 Message Date
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
5c44532790 << && >>: left and right shift with integer operands 2024-12-07 07:06:08 +01:00
cb66c1ab19 symbol-map.go: removed unsed definitons 2024-10-13 08:44:21 +02:00
a28d24ba68 parser.go: improved terminal symbols thanks to new symbol-map.go functions 2024-10-13 08:42:55 +02:00
523349a204 symbol-map.go: new file that helps to identify symbols by source and class 2024-10-13 08:41:30 +02:00
b185f1df3a token.go: added a few error functions 2024-10-13 08:39:56 +02:00
5da5a61a42 Expr.doc: notes about function context 2024-10-05 05:30:22 +02:00
6e9205abc4 t_funcs_test.go: A test add on parameters check about two params with the same name 2024-10-05 05:25:29 +02:00
f61004fb5d A test added on new implicit boolean cases in selector operator 2024-10-05 05:23:55 +02:00
321030c8d3 parser.go: function parameter list can't specify same parameter more than once 2024-10-01 06:39:51 +02:00
98fc89e84f operator-selector.go: Simplified selector for Boolean expressions 2024-10-01 06:37:35 +02:00
778d00677d Doc: closure example 2024-09-18 20:48:12 +02:00
ba3dbb7f02 Doc: continuation 2024-09-16 06:52:29 +02:00
7285109115 parser.go: number sign is now allowed after the assign operator 2024-09-16 06:49:26 +02:00
4755774edd Doc: Fixed a lot of typos 2024-09-12 06:57:43 +02:00
d215d837f6 Reset() and Clean() have new, simpler signature 2024-09-12 05:44:29 +02:00
ad3c1e5a60 enhanced and simplified Reset(), Clean() and Next() methods 2024-09-09 15:23:07 +02:00
d6bf5ee500 common-type-names.go: TypeNil and TyperDict added 2024-09-09 15:16:42 +02:00
4b176eb868 Fix function.go: CallFunctionByParams() dit not pass correctly received actual params 2024-08-23 10:29:57 +02:00
dceb31f542 CallFunction() has been replaced by three new functions:
CallFunctionByTerm(), CallFunctionByArgs() and CallFunctionByParams()
2024-08-02 06:39:33 +02:00
075b0b5691 RegisterFunc() also returns the funcInfo object 2024-08-01 00:09:49 +02:00
3c51b8d2ee Changed some function names and param types 2024-07-31 09:11:57 +02:00
a46753f453 Function buildActualParams moved from data-cursor.go ro function.go 2024-07-31 09:08:58 +02:00
9070b5c9cc The function parameter model has been modified to support the passing of named parameters 2024-07-28 18:49:08 +02:00
ab06702e5e operator-post-inc.go: new post int decrement operator '--' 2024-07-24 06:39:35 +02:00
ffe1fa3aac op-assign expansion now end at ']' and '}' too 2024-07-24 06:37:57 +02:00
1a1a475dd8 Added support to op-assign operators like '+='.
This feature is implemented by expansion, not by dedicated operators, e.g. a*=2+x is exapanded as a=a*(2+x)
2024-07-23 15:35:57 +02:00
463e3634ba scanner.go: New function UnreadToken().
Currently it only supports one staging level.
2024-07-23 15:32:25 +02:00
5f8ca47ef0 term.go: New function Clone() 2024-07-23 15:27:50 +02:00
837b887490 token.go: New functions Clone() and IsOneOfA() 2024-07-23 15:27:36 +02:00
c76e1d3c8e symbol.go: New symbol '*=' 2024-07-23 15:24:54 +02:00
315f5b22d3 data-cursor.go: the inizialization of the current item is done in the Next() method.
This allows the application of the filter and map operator to the first item too.
2024-07-23 05:46:37 +02:00
dfae593e86 operand-iterator.go: removed commented code 2024-07-21 16:35:13 +02:00
d572f3a129 Iterator: new function Count() 2024-07-21 16:34:52 +02:00
c461fd138e Iterator defined by data-source now only requires one method: next() 2024-07-21 05:45:22 +02:00
6ecbe2feb1 Fixed type (expcted -> expected) 2024-07-21 05:43:55 +02:00
80d3c6ec7d parser.go: Fixed an old bug that did not allow the parser to skip comment tokens 2024-07-21 05:37:34 +02:00
e09806c716 %q replaced by %s in some error messages 2024-07-21 05:33:06 +02:00
1a772597cb removed/commented unused code 2024-07-19 17:03:03 +02:00
33b3e1fc29 New function for searching and importing plugin 2024-07-19 15:37:00 +02:00
4e3f5cfbc6 import-utils.go: Paths are now expanded with respect to env-vars and shell ~ 2024-07-19 15:33:15 +02:00
e35d4e3f70 utils.go: added function ExpandPath 2024-07-19 15:30:26 +02:00
b4529499d6 iterator.go: exported some const identifier 2024-07-18 07:27:02 +02:00
7745dc24e2 dict-type.go: exported NewDataCursor 2024-07-18 07:25:51 +02:00
be25385d02 builtin-iterator: changed status variable from 'it_status' to 'status' 2024-07-15 06:59:13 +02:00
79889cd8e1 New builtin module 'iterator' 2024-07-14 16:53:32 +02:00
234759158c scanner: disabled prefix operator '()' 2024-07-13 18:10:04 +02:00
00fda29606 operator-iter-value.go: prefix operator () used to get the current value of an iterator replaced by ^ 2024-07-13 17:17:16 +02:00
2a2840bdf2 ListIterator now implements next and current command (e.g it.next) 2024-07-13 17:15:53 +02:00
06373f5126 Impemented Typer interface 2024-07-13 17:14:25 +02:00