Anton Medvedev and GitHub
46d295876f
Add spans
2024-02-29 20:51:34 +01:00
Sergey and GitHub
ee69dbfa99
Equal bools without reflect.DeepEqual ( #585 )
2024-02-28 10:39:01 +01:00
Sergey and GitHub
26bfa591a9
Support chzained comparisonc1 < 2 < 3 ( #581 )
2024-02-27 14:23:49 +01:00
Ganesan Karuppasamy and GitHub
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 Matrosov and GitHub
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 Medvedev and GitHub
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 Medvedev and GitHub
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 Medvedev and GitHub
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
Sergey and GitHub
8037acf0bb
Optimize boolean operations between all, any, one, none functions ( #555 )
2024-02-11 22:23:48 +01:00
Yuriy Panarin and GitHub
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 Fetisov and GitHub
c7c060ff44
Fix operator overloading ( #554 )
2024-02-08 21:07:58 +01:00
Sergey and GitHub
8d2e6b133c
Add optional array access like foo?.[42] ( #550 )
2024-02-08 12:20:20 +01:00
Sergey and GitHub
a20dd842e3
Optimize jump opcodes ( #545 )
2024-02-02 19:37:21 +01:00
Sergey and GitHub
a0e2fe3664
Fix string literal slicing error ( #543 )
2024-01-31 18:07:26 +01:00
Anton Medvedev
d645265cd1
Fix pipeline and call parsing
2024-01-24 23:49:57 +01:00
Anton Medvedev
616653130e
Make AsAny the new default
2024-01-21 11:55:30 +01:00
Anton Medvedev
c2a9f54569
Fix type checker to visit all arguments of func even in args count mismatch
2024-01-18 07:52:06 +01:00
Anton Medvedev
7d4dd1a708
Improve ast printing for boolean operators
2024-01-17 23:21:11 +01:00
Anton Medvedev and GitHub
84f18d7e5d
Add ast tree to program ( #528 )
...
* Add pro holder
* explain
2024-01-17 20:01:34 +01:00
Ganesan Karuppasamy and GitHub
9b73bb722e
Remove parents field for optimization ( #527 )
2024-01-16 12:47:46 +01:00
Anton Medvedev
2e71b2fb71
Fix type any type propagation with patcher relationship
2024-01-16 10:27:10 +01:00
Ganesan Karuppasamy and GitHub
a1ddf76201
Support Valuer Patching for MemberNode ( #525 )
2024-01-16 09:40:36 +01:00
Anton Medvedev and GitHub
6c60616e35
Fix context patcher ( #526 )
2024-01-14 17:27:22 +01:00
Anton Medvedev and GitHub
010c934215
Fix race cond in variabels ( #523 )
...
* Add race cond test
* Move variables array to vm
* Resize vars array for different programs
2024-01-13 20:41:14 +01:00
Anton Medvedev and GitHub
e7b1a64b58
Allow to override builtins ( #522 )
...
* Allow to override builtins
* Add :: syntax to access builtin in case of override
2024-01-13 15:56:49 +01:00
Anton Medvedev and GitHub
74e30b9ecd
Add build tag: expr_debug ( #521 )
2024-01-13 13:14:38 +01:00
Anton Medvedev
9352898016
Simplify abs
2024-01-12 22:03:10 +01:00
Anton Medvedev and GitHub
79bb049707
Add [generated] tags to files ( #518 )
2024-01-12 21:58:13 +01:00
Anton Medvedev
d83dbd684c
Add info about nested predicates
2024-01-06 20:08:05 +01:00
Anton Medvedev
8fc496a31f
Add heading ids
2024-01-05 22:36:41 +01:00
Anton Medvedev and GitHub
d903980830
Add mem grow to builtin ( #505 )
...
* Add mem grow to builtin
* Add OpValidateArgs opcode
2023-12-30 12:49:43 +01:00
Anton Medvedev
35fc6ee22b
Update examples.txt
2023-12-29 23:01:52 +01:00
Anton Medvedev
1dca2cbdc2
Move ast.Function to builtin.Function
2023-12-29 21:04:25 +01:00