1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

178 Commits

Author SHA1 Message Date
A. R. Shajii
2bf3709d33 Fix Asan flags 2022-01-31 18:38:59 -05:00
Ibrahim Numanagić
bbdd51cf9e Fix ctx->age in realizeFunction 2022-01-31 10:33:32 -08:00
Ibrahim Numanagić
363caec2ac Fix partialization 2022-01-30 18:32:31 -08:00
Ibrahim Numanagić
80480f87d5 Fix partialization [wip] 2022-01-30 10:42:57 -08:00
Ibrahim Numanagić
6561294672 Merge branch 'ir-annotations' into auto-class-deduction 2022-01-29 17:42:16 -08:00
A. R. Shajii
69552b1555 Remove dummy op 2022-01-28 15:07:11 -05:00
A. R. Shajii
c8c8a0edf7 Add TupleLiteralAttribute 2022-01-28 10:13:34 -05:00
A. R. Shajii
858cc31ed0 clang-format 2022-01-28 10:12:42 -05:00
Ibrahim Numanagić
4b2dfaf28f Fix partial handling in IR 2022-01-25 18:55:00 -08:00
A. R. Shajii
8dd7d2e0ea Add new attributes 2022-01-25 16:10:34 -05:00
A. R. Shajii
e7851d8983 clang-format 2022-01-17 11:44:14 -05:00
Ibrahim Numanagić
84237247a2 Fix Callable[] and None 2022-01-15 18:30:01 -08:00
Ibrahim Numanagić
6ee84e09b9 Fix tests 2022-01-15 11:39:24 -08:00
Ibrahim Numanagić
5ee92bd6c9 Merge develop 2022-01-15 11:25:46 -08:00
Ibrahim Numanagić
cc634d1940
Improved logic for handling overloaded functions (#10)
* Backport seq-lang/seq@develop fixes

* Backport seq-lang/seq@develop fixes

* Select the last matching overload by default (remove scoring logic); Add dispatch stubs for partial overload support

* Select the last matching overload by default [wip]

* Fix various bugs and update tests

* Add support for partial functions with *args/**kwargs; Fix partial method dispatch

* Update .gitignore

* Fix grammar to allow variable names that have reserved word as a prefix

* Add support for super() call

* Add super() tests; Allow static inheritance to inherit @extend methods

* Support for overloaded functions [wip; base logic done]

* Support for overloaded functions

* Update .gitignore

* Fix partial dots

* Rename function overload 'super' to 'superf'

* Add support for super()

* Add tests for super()

* Add tuple_offsetof

* Add tuple support for super()

* Add isinstance support for inherited classes; Fix review issues

Co-authored-by: A. R. Shajii <ars@ars.me>
2022-01-11 20:39:15 -05:00
Ibrahim Numanagić
d3fa986dbc Merge branch 'fn-dispatch' into auto-class-deduction 2022-01-11 12:12:46 -08:00
Ibrahim Numanagić
47bea7017b Add isinstance support for inherited classes; Fix review issues 2022-01-11 11:49:12 -08:00
Ibrahim Numanagić
9dde5be88f Add tuple support for super() 2022-01-11 11:04:03 -08:00
Ibrahim Numanagić
65bc56eb21 Add tuple_offsetof 2022-01-09 10:15:02 -08:00
Ibrahim Numanagić
3920a16cdd Add tests for super() 2022-01-07 18:33:51 -08:00
Ibrahim Numanagić
5672cebe1c Add support for super() 2022-01-07 18:26:14 -08:00
Ibrahim Numanagić
cb0a6ea443 Rename function overload 'super' to 'superf' 2022-01-07 17:27:51 -08:00
Ibrahim Numanagić
5dcc51a667 Add class auto-deduction support 2022-01-04 19:39:53 -08:00
A. R. Shajii
a32e945dc1 Merge branch 'develop' into fn-dispatch 2022-01-04 11:57:40 -05:00
Ibrahim Numanagić
d6ace332b8 Fix partial dots 2021-12-29 17:58:22 -08:00
Ibrahim Numanagić
b29635216c Update .gitignore 2021-12-29 17:07:49 -08:00
Ibrahim Numanagić
c79035b180 Merge remote-tracking branch 'origin/develop' into fn-dispatch 2021-12-29 17:07:24 -08:00
A. R. Shajii
240f2947c5 Merge branch 'develop' of https://github.com/exaloop/codon into develop 2021-12-29 20:06:24 -05:00
A. R. Shajii
0cd6d70d6b Fix static str test 2021-12-29 20:06:14 -05:00
Ibrahim Numanagić
18d1d9b51e
Seq backports (#8)
* Backport seq-lang/seq@develop fixes

* Backport seq-lang/seq@develop fixes

* Resolve review issues

* Resolve File.__copy__() issue

* Resolve incorrect partial handling of object methods

* Use ints and floats for __suffix__ methods

* Fix float test

* Update complex tests

* Fix float constructor

* Fix cmath test

Co-authored-by: A. R. Shajii <ars@ars.me>
2021-12-29 19:46:15 -05:00
Ibrahim Numanagić
5bca6e47a9 Support for overloaded functions 2021-12-29 09:56:07 -08:00
Ibrahim Numanagić
fa7278e616 Support for overloaded functions [wip; base logic done] 2021-12-28 20:58:20 -08:00
A. R. Shajii
d7f62872cc Fix static strings in names 2021-12-20 14:16:20 -05:00
A. R. Shajii
785b280000 Format newlines 2021-12-20 14:16:02 -05:00
A. R. Shajii
55eedf29be
Datetime (#9)
* Initial datetime module

* More functions

* Remove fold

* Fixes

* Fixes

* Fix radd etc.

* Add unittest

* Add default fillchar

* Add remaining tests
2021-12-20 13:07:07 -05:00
Ibrahim Numanagić
58664374c7 Add super() tests; Allow static inheritance to inherit @extend methods 2021-12-17 10:10:40 -08:00
Ibrahim Numanagić
2d6167be7e Add support for super() call 2021-12-17 09:23:50 -08:00
Ibrahim Numanagić
ec76298ab5 Fix grammar to allow variable names that have reserved word as a prefix 2021-12-16 13:56:37 -08:00
Ibrahim Numanagić
2d1894333c Update .gitignore 2021-12-16 13:24:09 -08:00
Ibrahim Numanagić
acc96aa6eb Add support for partial functions with *args/**kwargs; Fix partial method dispatch 2021-12-16 13:23:31 -08:00
Ibrahim Numanagić
3d6090322d Fix various bugs and update tests 2021-12-15 11:44:17 -08:00
Mark Henderson
fa994600b1
Update primer FFI example [skip ci] 2021-12-14 21:34:49 -06:00
Ibrahim Numanagić
9c8424275e
Fix broken merge 2021-12-12 11:36:30 -08:00
Ibrahim Numanagić
a68e95fb2b Select the last matching overload by default [wip] 2021-12-12 11:30:57 -08:00
Ibrahim Numanagić
ab14cf9fc7 Select the last matching overload by default (remove scoring logic); Add dispatch stubs for partial overload support 2021-12-11 11:19:14 -08:00
Ibrahim Numanagić
721531c409 Backport seq-lang/seq@develop fixes 2021-12-10 13:01:40 -08:00
Ibrahim Numanagić
adac82bdef Backport seq-lang/seq@develop fixes 2021-12-10 12:28:19 -08:00
Ibrahim Numanagić
d3f01b541b Merge JIT fixes (#7) 2021-12-10 11:27:08 -08:00
Ibrahim Numanagić
539b3cd124 Restore JIT state on error 2021-12-10 11:08:17 -08:00
Ibrahim Numanagić
5834228f3d Fix pipeline JIT bug 2021-12-10 10:46:48 -08:00