Commit Graph

524 Commits

Author SHA1 Message Date
52a627c747 Edited according to preious commit 2024-12-28 09:28:12 +01:00
d91e7eb979 The list operator '<<' (append) and '>>' (prepend) have been replaced
with the new operators '<+' and '+>' respectively.
'<<' and '>>' are now used only for left and right binary shit
respectively. Further, their priority has been increased moving them to
a higher priority than that of the assignment operator.
2024-12-28 09:17:27 +01:00
cca3b76baa solved a number of problems highlighted by the syntax analyzer 2024-12-27 07:46:11 +01:00
24e31997fc context-helpers.go: export functions no longer export control flags 2024-12-27 07:22:28 +01:00
646710e180 builtin-base.go: new eval() function 2024-12-27 07:14:26 +01:00
b38327b841 t_builtin-string_test.go: corrected an undefinite article 2024-12-27 07:14:01 +01:00
fd912b2eb1 common-errors.go: undefinte article selection in error messages 2024-12-27 07:13:03 +01:00
0e55f83d56 Forced the exlamation mark as a postfix operator 2024-12-26 08:57:14 +01:00
4725145d1c Doc: changed fraction symbol and introduced binary operators 2024-12-25 07:43:06 +01:00
edf8818f51 New dedicated priority for binary operators between relational and sum ones 2024-12-25 07:41:08 +01:00
6211be8a8f Completed transition of the symbol '|' from fraction to operator binary or. New fraction symbol is ':'.
Also, fixed and improved some parsing sections concerning collection indeces and ranges
2024-12-23 06:59:39 +01:00
f50ddf48db operator-range.go: range-term registered with symbol SymRange 2024-12-23 06:55:57 +01:00
76e01f12d2 term.go: two error messages corrected 2024-12-23 06:53:37 +01:00
406bced450 operator-sum.go: sum of two fraction fixed 2024-12-23 06:52:10 +01:00
409dc86a92 symbol.go: SymRange added 2024-12-23 06:50:02 +01:00
4184221428 symbol-map.go: changed symbol classification of some symbols like quotes and post-op 2024-12-23 06:49:17 +01:00
8cf8b36a26 t_parser_test.go: replaced ~ with NOT 2024-12-19 15:36:16 +01:00
de87050188 scanner.go: removed SymTilde from DefaultTranslatios() -> It is not an alias for the SymNot symbol any more 2024-12-19 15:30:29 +01:00
a1ec0cc611 All assignment operators set the firstToken flag 2024-12-19 15:27:38 +01:00
8e5550bfa7 New operator %= 2024-12-19 15:14:30 +01:00
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