Commit Graph

338 Commits

Author SHA1 Message Date
s-hadinger b06c310305
Berry update Windows binary (#20845) 2024-03-01 19:37:45 +01:00
s-hadinger e55471e084
Berry bug when parsing ternary operator (#20839) 2024-02-29 19:23:32 +01:00
s-hadinger 7ad95faad2
Fix Berry Memory leak in `import re` (#20823) 2024-02-27 21:56:51 +01:00
s-hadinger 55be1866ad
Berry add explicit error log when memory allocation fails (#20807) 2024-02-25 21:17:08 +01:00
s-hadinger a5e3391ca8
Matter fix introspect.contains (#20685) 2024-02-08 02:42:21 +01:00
s-hadinger 6c16a5122a
Berry add `introspect.contains` and `bytes.addfloat` (#20635) 2024-02-01 09:52:24 +01:00
s-hadinger 6b4254a014
Berry syntax coloring for Notepad++ (by FransO) (#20541) 2024-01-18 23:24:18 +01:00
s-hadinger 06c2d78d5f
Berry assigment to list with negative index (#20537) 2024-01-18 22:01:39 +01:00
s-hadinger a2c4123d79
Berry add solidification of strings longer than 255 bytes (#20529) 2024-01-18 12:31:47 +01:00
s-hadinger 08a14ccc9e
LVGL add `lv.str_arr` (#20480) 2024-01-12 19:48:33 +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 67b36030dc
Berry sync upstream #369 (#20330) 2023-12-28 17:00:35 +01:00
s-hadinger 2808653ad9
Moved Berry animate to its own `berry_animate` lib (#20309)
* Moved Berry animate to its own `berry_animate` lib

* Fix solidification

* fix compilation

* Fix compilation
2023-12-25 11:01:19 +01:00
s-hadinger c1f8ee5dbb
Refactoring of Berry `animate` module for WS2812 Leds (#20236) 2023-12-14 20:13:17 +01:00
s-hadinger d61adb0b0c
Leds animation refactoring stage 1 (#20197) 2023-12-08 21:13:44 +01:00
s-hadinger fd0a2fdaa5
Update berry.exe (#20186) 2023-12-07 22:07:11 +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 de1b5929b8
Partition Wizard can be loaded dynamically (#19980)
* Partition Wizard can be loaded dynamically

* Centralize config

* Don't display duplicate buttons

* Fix test
2023-11-11 23:52:41 +01:00
s-hadinger ceda8782c8
Berry fix bytes getter for 3-bytes big-endian (#19945) 2023-11-06 17:48:24 +01:00
s-hadinger 625b204cb2
Berry ``debug.gcdebug()`` to enable GC debugging (#19936) 2023-11-05 18:40:28 +01:00
s-hadinger 86e777eaad
Fix python coc warning (#19895) 2023-11-01 12:09:10 +01:00
s-hadinger 0cd1ae965c
Berry fix warning in be_lexer (#19892) 2023-10-31 22:11:18 +01:00
Andreas Ziemer dfa6f9a771
Update be_lexer.c (#19856)
Added check for unterminated block comments
2023-10-28 11:43:35 +02:00
s-hadinger d2b370ab44
Fix Berry on old ESP32 (#19830) 2023-10-24 18:01:14 +02: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 ab45702519
Fix Berry solidification (#19691) 2023-10-06 22:42:38 +02:00
s-hadinger 23a3c33968
Berry fix esp-idf 5 compilation 2023-10-06 21:17:49 +02:00
s-hadinger bf9c5b86c6
Remove warnings when compiling Audio with Arduino 3 (#19687) 2023-10-06 19:47:10 +02:00
s-hadinger 288fe3b282
Berry fix compilation with integer index (#19655) 2023-10-03 15:21:48 +02:00
s-hadinger 31e56903c5
Audio refactoring and fixes (#19594) 2023-09-25 23:31:32 +02:00
s-hadinger 81d287a3b0
Berry fix audio MP3 (#19578) 2023-09-23 12:23:51 +02:00
blakadder 8246410c8a
fix compile errors on exotic windows codepages (#19508) 2023-09-13 15:06:01 +02:00
s-hadinger 80617e96e1
Berry bytes `get` and `set` work for 3 bytes values (#19225)
* Berry bytes `get` and `set` work for 3 bytes values

* Fix error message
2023-07-31 13:57:07 +02:00
s-hadinger 0b59cda02a
Berry add metrics for memory allocation/deallocation/reallocation (#19150) 2023-07-19 20:41:41 +02:00
s-hadinger 410a6b99d9
Berry update grammar (#19129) 2023-07-16 15:32:59 +02:00
s-hadinger 00249ac3eb
Fix typo 2023-07-16 15:05:41 +02:00
s-hadinger f4ff0010af
Berry fix syntax highlighting for escaped chars (#19126) 2023-07-16 11:15:33 +02:00
s-hadinger 315fe36727
Berry check arguments for `range()` (#19124) 2023-07-15 23:25:51 +02:00
s-hadinger ca8ec6a006
Berry updated syntax highlighting plugin for VSCode (#19123) 2023-07-15 22:43:38 +02:00
s-hadinger 0c0ca82198
Update Berry windows exe to latest (#19121) 2023-07-15 19:20:59 +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 8c31acd376
Berry minor fixes from upstream (#19091) 2023-07-11 08:21:09 +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 2ecb697a3f
Berry added `getgbl` performance counter to `debug.counters()` (#19070)
* Berry add `getgbl` counter

* Berry added `getgbl` performance counter to `debug.counters()`
2023-07-08 11:25:25 +02:00
s-hadinger cc55cf0bb1
Revert "Berry `var` allowed in with walrus operator `:=` (#19018)" (#19019)
This reverts commit 8f06552eee.
2023-07-03 14:10:05 +02:00
s-hadinger 8f06552eee
Berry `var` allowed in with walrus operator `:=` (#19018)
* Berry `var` allowed in with walrus operator `:=`

* fix regression
2023-07-03 12:28:41 +02:00
s-hadinger ff865d8005
Update pre-compiled Berry for Windows (#19001) 2023-06-29 16:39:59 +02:00
s-hadinger ef304a8ba8
Berry mark walrus operator as side-effect (#18999) 2023-06-29 13:01:07 +02:00
s-hadinger 34456e6193
Berry `import strict` now detects useless expr without side effects (#18997) 2023-06-29 09:04:16 +02:00
s-hadinger b9588e6192
Berry `bool( [] )` and `bool( {} )` now evaluate as `false` (#18986) 2023-06-27 22:07:13 +02:00
s-hadinger 9cf3d16065
Berry various fixes for Walrus Operator (#18982) 2023-06-27 14:32:08 +02:00
s-hadinger 090a4bb4b5
Berry fix bug in walrus operator (#18969) 2023-06-25 23:14:33 +02:00
s-hadinger 30a65edd7a
Berry Walrus operator ':=' (#18963) 2023-06-25 17:30:42 +02:00
s-hadinger 0ac5d0945b
Berry add option to remove source file name and save flash space (#18948) 2023-06-23 23:14:51 +02:00
s-hadinger 5792dad12b
Berry reduce bproto structure by 8 bytes (#18946) 2023-06-23 19:34:42 +02:00
s-hadinger bf36868813
Matter remove superfluous `import.string` (#18938) 2023-06-22 23:49:35 +02:00
s-hadinger 85f357096a
Berry added f-strings as an alternative to string formatting (#18937) 2023-06-22 22:50:05 +02:00
s-hadinger 410aadbf6d
Berry add global function `format` as a simpler syntax to `string.format` (#18925) 2023-06-21 14:12:39 +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 827c14e4bd
Increase solidify buffer (#18843) 2023-06-10 18:23:33 +02:00
s-hadinger 3c75bc92a2
Zigbee Berry mapping fix attributes (#18747) 2023-05-29 23:05:45 +02:00
s-hadinger b053cf87ec
Berry safeguard when freeing null pointer (#18735) 2023-05-29 11:00:20 +02:00
Jason2866 db1b9ffe49
Update gen.sh 2023-05-12 14:25:56 +02:00
Jason2866 979a15cf07
run "coc" before solidify (#18643)
* Run "coc"
* change artifact order
2023-05-12 11:06:20 +02:00
Jason2866 c776885691
clang for berry binary compile (#18641) 2023-05-11 16:21:33 +02:00
s-hadinger c4d90d4636
Berry suppress warnings (#18626) 2023-05-09 22:10:16 +02:00
s-hadinger fec3a21c8a
Berry strtab test case (#18623) 2023-05-09 21:13:00 +02:00
s-hadinger 4cd1136f4c
Berry fixed a rare condition when a GC causes a memory corruption (#18614) 2023-05-08 21:59:32 +02:00
s-hadinger 97cbfe007f
Add windows berry binary (#18599) 2023-05-07 18:12:47 +02:00
s-hadinger 519ea557c7
Berry `re` (regex) add `match2` and optional offset (#18596) 2023-05-07 16:18:34 +02:00
s-hadinger 069278f966
Berry add `tcpclientasync` class for non-blocking TCP client (#18584) 2023-05-05 15:13:22 +02:00
Jason2866 763a8671ab
fix c3 exceptions when using lvgl (#18493) 2023-04-24 16:11:54 +02:00
s-hadinger 045f8b4aec
Berry fix corruption in debug (#18475) 2023-04-21 23:05:25 +02:00
s-hadinger d9eeb8bf57
Berry remove superfluous test (#18473) 2023-04-21 22:42:02 +02:00
s-hadinger f5e6ba956d
Berry upstream (#18471) 2023-04-21 22:36:18 +02:00
s-hadinger f46b9f4e2d
Update Berry tests from upstream (#18472) 2023-04-21 22:36:00 +02:00
s-hadinger 01ba3d28cd
Berry apply fixes from upstream (#18470)
* Berry apply fixes from upstream

* Fix
2023-04-21 21:59:45 +02:00
s-hadinger 4bac940a40
Matter add sensors: Humidity, Pressure, Illuminance; optimize memory (#18441) 2023-04-17 21:49:12 +02:00
s-hadinger de45a7af26
Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns (#18429) 2023-04-16 17:43:49 +02:00
s-hadinger 0feba56d8e
Berry `instrospect.name()` to get names of functions, modules and classes (#18422) 2023-04-15 19:34:31 +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
s-hadinger 4b272083d6
Berry fix solidify int type (#18378) 2023-04-10 15:45:07 +02:00
s-hadinger 506248be99
Matter various fixes (#18377) 2023-04-10 12:59:23 +02:00
s-hadinger 4ff9cf4e59
Berry coc support unicode (#18195) 2023-03-14 23:02:50 +01:00
Christian Baars 83f039cdf7
Berry: add tensorflow lite for microcontrollers (#18119)
Co-authored-by: Christian Baars <christianbaars@MacBook-Pro-von-Christian.local>
2023-03-05 16:46:18 +01:00
s-hadinger dcbf50a918
Matter automatic ifdefs (#18002) 2023-02-19 22:25:29 +01:00
s-hadinger dc245c57b1
Berry allow bool key (#17902) 2023-02-07 02:55:12 +01:00
s-hadinger a483991ba3
ESP32 preliminary support for Matter protocol, milestone 1 (commissioning) (#17871)
* ESP32 preliminary support for Matter protocol, milestone 1 (commissioning)

* Fix case
2023-02-04 00:00:21 +01:00
s-hadinger 4e60bd7465
Berry add `static class` to declare inner classes (#17699) 2023-01-14 11:38:51 +01:00
s-hadinger 9ba3c26a8a
Berry fix crash when generating bytecode of empty class (#17688) 2023-01-12 22:51:43 +01:00
s-hadinger 1acd9b867c
Berry add implicit _class parameter to static methods (#17683)
* Berry add implicit ``_class`` parameter to static methods

* Handle bytecode
2023-01-11 22:59:07 +01:00
s-hadinger f570dcc913
Berry `bytes()` now evaluates to `false` if empty (#17585) 2023-01-03 19:43:41 +01:00