Commit Graph

22 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
990e04f957 operator-assign.go -- Fix: Assigning a functor to a collection's item didn't work 2024-07-11 06:49:02 +02:00
6b3bfa2a11 self param replaced as opTerm 2024-07-09 07:50:06 +02:00
1757298eb4 formatter.go: typeName() renamed as TypeName() 2024-06-10 09:37:27 +02:00
c100cf349d some identier exported; new file import-utils.go 2024-06-06 05:31:35 +02:00
847d85605e removed unused commented code 2024-06-05 05:53:02 +02:00
e4ded4f746 operator-assign.go: some errors message changed to report the Expr's type names, not the Go ones 2024-06-05 05:05:40 +02:00
d96123ab02 The assign operator '=' can now set items in ListType and DictType 2024-06-04 11:07:35 +02:00
9bba40f155 Expr's functions now support parameters with default value 2024-06-01 19:56:40 +02:00
e5f63c3d9d function definition and usage rationalized 2024-05-24 06:28:48 +02:00
1ff5770264 New interface and implementation to model function parameters 2024-05-22 20:52:44 +02:00
7c8dbb0ac7 Added virtual symbol SymVariable translated from general real SymIdentifier symbol 2024-05-20 06:05:24 +02:00
4d43ab2c2f context.go: setVar() renamed as UnsafeSetVar() 2024-05-19 01:27:44 +02:00
3a30d890c6 operator-assign.go: improvements that allow to define function aliases (TODO: maybe *funcDefFunctor else-if section can be removed 2024-05-06 16:01:50 +02:00
1d8569d3a9 the function call procedure now check the number of actual parameters against the numer of formal parameters 2024-05-04 22:35:03 +02:00
761ec868e6 operator-assign.go: little refactor 2024-04-26 04:31:31 +02:00
8f396a35de ExprContext.SetVar() no longer requires the explicit specification of the type of number 2024-04-09 07:12:22 +02:00
4d94a7ad59 class and kind types removed 2024-04-09 05:32:50 +02:00
9ac88bf446 made some interfaces exportable and fixed/enhaaced some selector operator versions 2024-04-08 23:17:56 +02:00
088e347c95 Changed SetValue() as SetVar() and GetValue() as GetVar() 2024-04-03 06:29:57 +02:00
072dab4144 Expressions now support function definition 2024-04-02 04:36:03 +02:00
d0572260c7 New operators 'but' and assignment ('=') 2024-03-30 08:09:41 +01:00