970 Commits
Author SHA1 Message Date
Anton Medvedev 2ff83e8042 Better map ast printing 2024-04-13 10:08:48 +02:00
SergeyandAnton Medvedev db0054ab6f builtin int unwraps underlying int value (#611) 2024-04-13 10:08:48 +02:00
SergeyandAnton Medvedev 721b908494 expr.Operator passes before expr.Env caused error (#606) 2024-04-13 10:08:46 +02:00
Ganesan KaruppasamyandAnton Medvedev 527f3aacaf Fix -1 not in [] expressions (#590) 2024-04-13 10:08:10 +02:00
Ganesan KaruppasamyandAnton Medvedev 6fcc422765 Enable Support for Arrays in Sum, Mean, and Median Functions (#580) 2024-04-13 10:08:10 +02:00
Anton Medvedev 3dc373ec9a Add spans 2024-04-13 10:08:10 +02:00
SergeyandAnton Medvedev 2be09b2554 Support chzained comparisonc1 < 2 < 3 (#581) 2024-04-13 10:08:10 +02:00
DaenneyandGitHub 13451f69b4 Make WithContext work for methods on env struct (#602)
This makes the WithContext patcher work when passing in a struct for an
env that has methods that take a context.

This is a bit fiddly because we can't quite detect the difference of
function vs. method on a struct, so we have to check both the first and
the second param. Since it's highly unusual to pass the context as
anything other than the first parameter, this should work out just fine
in practice.

Fixes #600.
2024-04-12 22:54:01 +02:00
SergeyandGitHub 2835692a5f Optimize boolean operations between all, any, none functions (#626) 2024-04-12 18:49:41 +02:00
Anton MedvedevandGitHub 3205e4186b Revert "Optimize boolean operations between all, any, one, none functions (#555)" (#625)
This reverts commit 8037acf0bb.
2024-04-10 10:58:17 +02:00
needsureandGitHub c0d4644255 chore: fix some typos in conments (#622)
Signed-off-by: needsure <[email protected]>
2024-04-09 13:13:55 +02:00
Anton MedvedevandGitHub 4b2c15770d Update README.md 2024-04-09 09:47:41 +02:00
Richard WoodingandGitHub dc40f0eef6 Update README.md (#619)
Add SPAN Digital as an user of expr
2024-04-08 09:00:54 +02:00
zhuliquanandGitHub 62163f4450 feat: extract code for compiling equal operator (#614) 2024-03-28 14:37:51 +01:00
Anton Medvedev 9ca56a8aeb Better map ast printing 2024-03-27 09:26:56 +01:00
SergeyandGitHub 3f12ea7559 builtin int unwraps underlying int value (#611) 2024-03-20 20:06:04 +01:00
SergeyandGitHub 377d126756 expr.Operator passes before expr.Env caused error (#606) 2024-03-17 08:51:53 +01:00
bizy db5a6defcb Add bench and tests for runtime.Equal 2024-03-05 01:31:07 +07:00
Ganesan KaruppasamyandGitHub 650a7f5ac1 Fix -1 not in [] expressions (#590) 2024-03-04 14:40:33 +01:00
Ganesan KaruppasamyandGitHub 20d784fe9b Enable Support for Arrays in Sum, Mean, and Median Functions (#580) 2024-03-03 16:44:32 +01:00
Anton MedvedevandGitHub 46d295876f Add spans 2024-02-29 20:51:34 +01:00
SergeyandGitHub ee69dbfa99 Equal bools without reflect.DeepEqual (#585) 2024-02-28 10:39:01 +01:00
bizy 5bb64800db Compare any arrays 2024-02-28 00:30:33 +07:00
SergeyandGitHub 26bfa591a9 Support chzained comparisonc1 < 2 < 3 (#581) 2024-02-27 14:23:49 +01:00
Ganesan KaruppasamyandGitHub 2f8f25a68d Enhanced min and max built-in functions to Support Arrays of Integers and Floats (#576)
* Enhanced min and max built-in functions to Support Arrays of Integers and Floats

* Enhanced min and max built-in functions to Support Arrays of Integers and Floats
2024-02-24 21:12:51 +01:00
Anton Medvedev 14d3c281b2 Remove redundant checks 2024-02-21 00:07:51 +01:00
Anton Medvedev c3a9aa8f44 Fix naming 2024-02-18 09:55:10 +01:00
Anton Medvedev ee9b3142d1 Add quotes to error message 2024-02-18 09:45:39 +01:00
Anton Medvedev b117e690fb Fix operator overloading recursive
Fixes #548
2024-02-18 00:15:39 +01:00
Anton Medvedev 96c6ad6087 Refactor operator override to be purely patcher pkg 2024-02-17 19:56:28 +01:00
Anton Medvedev 6f8353d205 Remove redundant operator override check 2024-02-17 19:20:53 +01:00
Anton Medvedev 8ab750f2a2 Move operator override patcher to correct pkg 2024-02-17 19:17:27 +01:00
Anton Medvedev 3863d18bcc Update doc 2024-02-17 19:04:31 +01:00
Nikolay MatrosovandGitHub 0ebf2c2574 feat: Operator overload from Function (#408)
* feat: rewritten Operator overload from Function

* fix: add test
2024-02-17 14:33:07 +01:00
Anton Medvedev 129e6b3669 Fix tests 2024-02-17 11:15:54 +01:00
Anton Medvedev 2af0e981b2 Add more func_types 2024-02-16 23:40:23 +01:00
Anton Medvedev 8cd9257996 Sort func_types 2024-02-16 23:32:07 +01:00
Anton Medvedev c86f2e2718 Update real_world example 2024-02-16 23:13:44 +01:00
Anton MedvedevandGitHub 0d43107999 Add concat() builtin (#565)
* Add concat() builtin

* Use pkg deref in builtin

* Use pkg deref in checker

* Use pkg deref in types_table.go

* Use pkg deref in docgen.go

* Use pkg deref in vm
2024-02-16 22:32:35 +01:00
Anton MedvedevandGitHub b1e82de54a Refactor groupBy and sortBy (#562)
* Rearrange opcodes

* Refactor groupBy

* Fix tests

* Super opcodes for GroupBy

* Refactor sortBy builtin

* Fix sortBy bench
2024-02-15 19:53:35 +01:00
Anton MedvedevandGitHub d1068977c7 Update SECURITY.md 2024-02-12 22:58:19 +01:00
Anton Medvedev 2171fef85d Fix ast printing of ?.[ 2024-02-12 22:15:17 +01:00
Anton Medvedev fdae534aa9 Add OpCallSafe 2024-02-12 22:15:17 +01:00
Anton Medvedev 8073b4bdb7 Add program.Locations() 2024-02-11 22:58:31 +01:00
Anton Medvedev 5e6f8ebb30 Move bitFunc to utils.go 2024-02-11 22:49:25 +01:00
Anton Medvedev db8de638f6 Code style 2024-02-11 22:48:38 +01:00
SergeyandGitHub 8037acf0bb Optimize boolean operations between all, any, one, none functions (#555) 2024-02-11 22:23:48 +01:00
Yuriy PanarinandGitHub 8ec7fe3be8 code(builtin) - add reverse function (#553)
* code(builtin) - add reverse function

* docs(language-definition.md) - add reverse function
2024-02-11 22:21:49 +01:00
Vladimir FetisovandGitHub c7c060ff44 Fix operator overloading (#554) 2024-02-08 21:07:58 +01:00
SergeyandGitHub 8d2e6b133c Add optional array access like foo?.[42] (#550) 2024-02-08 12:20:20 +01:00