Commit Graph

192 Commits

Author SHA1 Message Date
s-hadinger
9a98db9773
Berry 'global.undef()' to undefine a global variable (#23073) 2025-02-26 15:30:04 +01:00
s-hadinger
670fab7ead
Berry 'introspect.solidified()' to know if a Berry object is solidified in Flash or in RAM (#23063)
* Berry 'introspect.isconst()' to know if a Berry object is solidified or in RAM

* change to solidified

* fix typo
2025-02-24 14:05:58 +01:00
s-hadinger
cfc11b5e83
Fix memory corruption in bytes().appendb64() 2025-02-15 22:08:00 +01:00
s-hadinger
a939b4973e
Remove unwanted tab 2025-02-15 21:41:44 +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
f4d0606d06
Berry fix typo (#22725) 2024-12-27 17:56:39 +01:00
s-hadinger
02ae53cec5
Berry add unicode encoding to string parsing (#22713) 2024-12-24 18:03:21 +01:00
s-hadinger
fde529fac4
Berry fix walrus operator (#22685) 2024-12-19 21:46:16 +01:00
s-hadinger
a306d77a5e
Berry fix compilation error with some compiler options (#22200) 2024-09-24 22:58:49 +02:00
s-hadinger
ef1cbeae21
fix be_byteslib.c 2024-09-24 22:00:57 +02:00
s-hadinger
2d5545997e
Berry fix index accessor for rean only bytes (#22193) 2024-09-23 22:43:33 +02:00
s-hadinger
3f56ab68ad
Berry improve int64 constructor (#22172) 2024-09-19 21:35:52 +02:00
s-hadinger
428fa95dfd
Berry avoid readbytes() from crashing when file is too large (#22057) 2024-08-30 13:59: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
71f0a06356
Upstream Berry fix removing assert (#22054) 2024-08-29 21:32:28 +02:00
s-hadinger
40ee4cc316
Berry add solidify.nocompact() and reduce size of Matter UI (#21885) 2024-08-01 22:02:27 +02:00
s-hadinger
74551c873f
Berry add file.savecode() (#21884) 2024-08-01 15:38:07 +02:00
s-hadinger
035daa663b
Berry file.write() raises an exception on failure (ex: disk full) (#21849) 2024-07-26 12:44:25 +02:00
s-hadinger
f97c47c511
Avoid random content in bvalue (#21846) 2024-07-25 23:11:14 +02:00
s-hadinger
1b887d7202
Berry consolidated constants for solidified classes reduces Flash size (#21845) 2024-07-25 22:53:02 +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
b56e3c43a8
Berry improve solidification of bytes (#21751) 2024-07-09 13:19:24 +02:00
s-hadinger
b6c488a883
Berry bytes.resize() for large sizes (#21716) 2024-07-01 22:53:49 +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
d16a502f36
Berry fix potential crash when solidifying loaded bytecode (#21583) 2024-06-06 22:11:52 +02:00
s-hadinger
a51c511d52
Berry bytes solidification (#21558)
* Berry prepare for bytes() solidification

* Berry solidification of bytes objects

* Berry solidification of `bytes` instances
2024-06-03 21:14:44 +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
c161f63c9a
Berry fix message for borrowed method (solidification) 2024-05-24 22:59:19 +02:00
s-hadinger
0d3e888147
Berry change internal storage of parent class for methods (#21490)
* Berry change internal storage of parent class for methods

* Fix compilation of zigbee

* Patch solidify for berry_custom
2024-05-24 22:32:37 +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
8acf4cd119
Berry fix for Ubuntu (#21166) 2024-04-13 15:19:04 +02:00
s-hadinger
8736544a81
Berry fix upstream connect with undefined variable (#21156) 2024-04-12 15:34:24 +02:00
s-hadinger
5e60d5217d
Berry compile local Berry with int64 (#21151)
* Berry compile local Berry with int64

* Revert solidify
2024-04-11 22:18:59 +02:00
s-hadinger
7e2fff9728
Berry prepare compilation on 64bits platforms (#21149) 2024-04-11 22:03:12 +02:00
s-hadinger
0484299ee4
Align with Berry PR #412 (#21143) 2024-04-11 10:51:15 +02:00
s-hadinger
aa4bdebe55
Berry print "a" syntax no longer supported (#21048) 2024-03-27 16:22:27 +01: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
55be1866ad
Berry add explicit error log when memory allocation fails (#20807) 2024-02-25 21:17:08 +01:00