67 Commits

Author SHA1 Message Date
s-hadinger
45dd2a331e
Berry f-strings now support ':' in expression (#23618) 2025-06-29 22:46:18 +02:00
s-hadinger
8de22ee4cc
Berry fix security issues in 'int64' and improve documentation (#23605) 2025-06-27 20:49:49 +02:00
s-hadinger
727756283d
Berry add internal documentation with Claude 4 (#23604) 2025-06-27 19:42:44 +02:00
s-hadinger
decdfc6b51
Berry vulnerability in JSON parsing for unicode (#23603) 2025-06-27 19:38:31 +02:00
s-hadinger
082170374c
Berry string literals containing NULL are truncated (#23312) 2025-04-17 22:12:35 +02:00
s-hadinger
c2628c95f3
Berry 'bytes().asstring()' now truncates a string if buffer contains NULL (#23311) 2025-04-17 21:51:03 +02:00
s-hadinger
b77b622fbe
Berry bytes add 3 (#23200)
* Berry bytes add with 3 bytes

* add changelog
2025-03-27 22:55:42 +01:00
s-hadinger
1b51aef911
Berry now accepts 'bytes()' as precompiled patterns, added 're.compilebytes()' (#23149) 2025-03-13 23:38:55 +01:00
s-hadinger
d805cef66e
Berry bytes add appendb64 (#23008)
* Berry Leds_panel minor fix

* Fix

* Berry add 'bytes().appendb64()'

* fix lib
2025-02-15 21:09:40 +01:00
s-hadinger
0b3be314e7
Berry fixed parser error in rare case (#22997) 2025-02-12 22:37:48 +01:00
s-hadinger
77d98868bf
Berry add 'bytes().appendhex()' (#22767) 2025-01-05 13:12:39 +01:00
s-hadinger
c084719b0e
Berry allow 'bytes().append(nil)' (#22758) 2025-01-03 15:14:29 +01:00
s-hadinger
02ae53cec5
Berry add unicode encoding to string parsing (#22713) 2024-12-24 18:03:21 +01:00
s-hadinger
3f56ab68ad
Berry improve int64 constructor (#22172) 2024-09-19 21:35:52 +02:00
s-hadinger
1ab9bee312
Berry remove reuse of methods for interface-like code reuse #21500 (#22055) 2024-08-29 22:00:20 +02:00
s-hadinger
bf7fbf2cbe
Berry internal: remove class from closure to simplify code (#21839) 2024-07-24 22:59:53 +02:00
s-hadinger
db3e29dd47
Berry fix bytes setters and getters with negative offsets (#21835) 2024-07-24 14:24:11 +02:00
s-hadinger
c58607a5b5
Berry math.min() and math.max() (#21705) 2024-06-29 10:42:21 +02:00
s-hadinger
bd47d99ceb
Berry classof extended to class methods (#21615) 2024-06-12 10:48:38 +02:00
s-hadinger
9546390a1f
Berry add math.round (#21602)
* Berry add `math.round`

* add unit tests

* math.roung() returns real
2024-06-09 19:01:15 +02:00
s-hadinger
e56f6a150d
Berry add reuse of methods for interface-like code reuse (#21500) 2024-05-26 23:05:43 +02:00
s-hadinger
fd148a8d12
Berry math.inf, math.isinf() and fixed json ouput for inf and nan (#21304) 2024-04-29 22:55:57 +02:00
s-hadinger
c1845b952b
Berry apply upstream fixes (#21194) 2024-04-15 22:12:16 +02:00
s-hadinger
35c2d55382
Berry upstream walrus fix (#21175) 2024-04-14 15:58:30 +02:00
s-hadinger
105aa03198
Berry upstream fix mod 0 (#21174)
* Berry upstream fix mod 0

* Add test case
2024-04-14 14:55:20 +02:00
s-hadinger
c95483844a
Berry fix walrus bug when assigning to self (#21015) 2024-03-22 18:51:48 +01:00
s-hadinger
0518bd6c64
Berry fix walrus with member or index (#20939) 2024-03-12 23:00:52 +01:00
s-hadinger
bb07ded475
Berry add string.starstwith, string.endswith and %q format (#20909)
* Berry add `string.starstwith`, `string.endswith` and `%q` format

* Fix typo

---------

Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com>
2024-03-10 14:31:15 +01:00
s-hadinger
e55471e084
Berry bug when parsing ternary operator (#20839) 2024-02-29 19:23:32 +01:00
s-hadinger
b0f4542707
Berry debug.caller (#20470) 2024-01-12 08:29:14 +01:00
s-hadinger
298ee22ebf
Berry add string to bytes() (#20420) 2024-01-07 15:38:29 +01:00
s-hadinger
6768ebc2ac
Berry fix static allocation when superclass is a member (#20385) 2024-01-03 16:12:47 +01:00
s-hadinger
6a8435b731
Berry added introspect.set() for class attributes (#20339) 2023-12-29 10:17:10 +01:00
s-hadinger
e3b151c756
Fix Berry parser error in specific cases (#20059)
* Fix Berry parser error in specific cases

* fix typo

* Fix last bug (hopefully)
2023-11-19 17:16:03 +01:00
s-hadinger
385408dcfd
Berry fix bool side effect (#19790) 2023-10-18 20:02:47 +02:00
s-hadinger
906a12f21d
Berry add unit test for #19655 (#19692) 2023-10-06 22:46:02 +02:00
s-hadinger
46e17061b2
Berry extend range(lower, upper, incr) to arbitrary increment (#19120) 2023-07-15 19:09:52 +02:00
s-hadinger
af27d65a8a
Sync with Berry upstream (#19119) 2023-07-15 18:11:04 +02:00
s-hadinger
7404b8ddbb
Berry _class can be used in static var initialization code (#19088) 2023-07-10 17:50:04 +02:00
s-hadinger
b9588e6192
Berry bool( [] ) and bool( {} ) now evaluate as false (#18986) 2023-06-27 22:07:13 +02:00
s-hadinger
1e745807e4
Berry fixed parser error with upvals in closures (#18902) 2023-06-18 20:21:08 +02:00
s-hadinger
3fc932d38a
Berry string.format() now automatically converts type according to format (#18890) 2023-06-16 20:38:53 +02:00
s-hadinger
5da84c52ff
Berry Allow comments in multi-line strings (#18848) 2023-06-10 22:23:43 +02:00
s-hadinger
d9eeb8bf57
Berry remove superfluous test (#18473) 2023-04-21 22:42:02 +02:00
s-hadinger
f46b9f4e2d
Update Berry tests from upstream (#18472) 2023-04-21 22:36:00 +02:00
s-hadinger
009e07fd07
Berry json patches (#18407) 2023-04-13 22:51:55 +02:00
s-hadinger
8ea91b7792
Berry fix rare crash in json parsing (#18395) 2023-04-11 23:13:02 +02:00
Stephan Hadinger
4c896cd8bc Added Berry `bytes().reverse()` method 2022-11-01 23:07:15 +01:00
Stephan Hadinger
2ef866e3b8 Berry add bytes().setbytes() 2022-10-23 19:43:40 +02:00
Stephan Hadinger
3f5baaa0c6 Berry add `introspect.setmodule(name:string, value:any) -> nil` 2022-09-25 15:33:31 +02:00