Commit Graph

539 Commits

Author SHA1 Message Date
5ecf81412e Doc: pre & post incremente/decrement 2025-01-05 12:53:50 +01:00
ff4db34f7b t_operator_test.go: test on -- and ++ prefix operators 2025-01-05 12:49:36 +01:00
0f848071c2 New prefix operators ++ and -- 2025-01-04 18:12:38 +01:00
6b3351b324 new prefix operator "!" as logic NOT 2025-01-04 17:47:59 +01:00
760c1ee6da New bitwise XOR operator specified by symbol ^ (caret). Iterator dereference is now done by prefixed * (star) 2025-01-03 07:33:17 +01:00
5ab6876ea1 term.go: new priority priDereference 2025-01-03 07:28:30 +01:00
6268abda8c token.go: new member function Token.SetSymbol() 2025-01-03 07:27:49 +01:00
d25bd325b7 symbol-map.go: improved detection of incomplete operations 2025-01-03 06:32:55 +01:00
01c04feea5 Doc: bitwise operators in the main operator table and special assignment operators table 2025-01-03 05:43:50 +01:00
6fc689c46c Added a test to the context type 2025-01-03 05:40:24 +01:00
eccb0c4dc9 Added new special operators like &= and <<=.
Also made a litle change to scanner function moveOn(): now it moves on
the last char passed and only if there are more than one chars.
2024-12-29 19:26:02 +01:00
e43823740f Doc: added string splitter operator '/' 2024-12-28 19:22:26 +01:00
526982a564 new string operator '/' 2024-12-28 19:16:45 +01:00
252514943e parser.go: fix currentItem after parse a subexpr 2024-12-28 19:16:03 +01:00
32686fac62 term.go: new member function errDivisionByZero() 2024-12-28 19:14:34 +01:00
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