Commit Graph

52 Commits

Author SHA1 Message Date
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
Stephan Hadinger
18a950f61c Berry fix for stricter mode 2022-09-06 22:54:24 +02:00
Stephan Hadinger
197e25132c Berry fix reference when exeception is raised 2022-07-25 22:32:26 +02:00
Stephan Hadinger
69de76338c Berry allow setmember() to fail with false or undefined 2022-07-05 21:14:50 +02:00
Stephan Hadinger
74b11c8e3b Berry update tests for module undefined 2022-07-02 16:58:51 +02:00
Stephan Hadinger
9bf0d7fb4e Berry sync with upstream 2022-07-02 16:27:37 +02:00
Stephan Hadinger
aaa87365f0 Berry prefer static var syntax 2022-07-01 19:56:09 +02:00
s-hadinger
b744c2e9b3
Merge pull request #15863 from s-hadinger/Berry-improved-bool
Berry improved booleans
2022-06-24 23:34:51 +02:00
Stephan Hadinger
147bbc133e Berry improved booleans 2022-06-24 23:17:33 +02:00
Stephan Hadinger
c9e49f7432 Berry add string.replace() 2022-06-24 23:12:49 +02:00
Stephan Hadinger
7232f5865d Berry int() now accepts hex strings 2022-06-03 21:51:20 +02:00
Stephan Hadinger
71010423eb Sync with latest Berry PRs 2022-04-20 22:57:07 +02:00
Stephan Hadinger
ead18b63d6 Berry bytes setfloat getfloat 2022-03-21 23:07:48 +01:00
Stephan Hadinger
cd401d3928 Berry check non-method 2022-01-18 22:13:40 +01:00
Stephan Hadinger
c1e3d88f2f Berry fix string.format crash 2021-12-28 12:09:00 +01:00
Stephan Hadinger
7f0e4944ac Berry rename step 2/2 2021-12-14 15:10:03 +01:00