Commit graph

188 commits

Author SHA1 Message Date
Shunsuke Shibayama
6b14add8f8 Merge branch 'main' into pr/191 2022-10-06 11:57:49 +09:00
Shunsuke Shibayama
28f0ffeeb4 Update mod.rs 2022-10-06 10:40:18 +09:00
Shunsuke Shibayama
32c07fefcc Update mod.rs 2022-10-06 10:29:04 +09:00
Shunsuke Shibayama
bd4073ec29 Add Context::get_receiver_ctx 2022-10-06 10:19:01 +09:00
Shunsuke Shibayama
e89bb869bf Raise the priority of traits in method search 2022-10-06 09:16:14 +09:00
Shunsuke Shibayama
59f6046916 Fix method type inference for type variables 2022-10-06 00:27:43 +09:00
Shunsuke Shibayama
6ea4dae122 Impl Show for some builtin types 2022-10-05 21:12:35 +09:00
Shunsuke Shibayama
85c6057d7c Fix subtyping bugs 2022-10-05 11:53:29 +09:00
Shunsuke Shibayama
4d7181f2f0 Add trait implementation check 2022-10-05 02:10:27 +09:00
Shunsuke Shibayama
9751cf5d76 Fix type checking of union/intersection types 2022-10-05 00:43:30 +09:00
Shunsuke Shibayama
29763062af Add ParamTy::KwWithDefault 2022-10-05 00:17:26 +09:00
Shunsuke Shibayama
a3f71120ae Fix type inferring bugs 2022-10-04 12:53:05 +09:00
GreasySlug
20cc00d173 Add: impl set with len and register builtin ctx 2022-10-04 08:32:57 +09:00
GreasySlug
70dad0bda6 Clean: use elem not attrs and adjust fmt 2022-10-04 08:32:57 +09:00
Shunsuke Shibayama
6d903d2575 Add procedure assignment check 2022-10-03 23:09:07 +09:00
Shunsuke Shibayama
2f33c9b15d Add Del 2022-10-03 21:44:59 +09:00
Shunsuke Shibayama
6fb4ab2dcb Delete useless superclass declaration operations 2022-10-03 20:31:56 +09:00
GreasySlug
6e6edb5d7e Add: lower for the set literal 2022-10-03 17:21:59 +09:00
Shunsuke Shibayama
b6bd3d296e Add type displaying mode 2022-10-03 13:36:24 +09:00
Shunsuke Shibayama
1846767afa remove todo!()s 2022-10-03 12:25:28 +09:00
Shunsuke Shibayama
a39790e5fb Update eval.rs 2022-10-03 01:13:54 +09:00
Shunsuke Shibayama
e55ab8c027 Add Show trait 2022-10-03 01:02:49 +09:00
Shunsuke Shibayama
4f6fbb50d0 Delete useless parameters 2022-10-03 00:46:39 +09:00
Shunsuke Shibayama
60bc94058a Changed type of tmp_tv_ctx from &mut to & 2022-10-02 20:12:25 +09:00
Shunsuke Shibayama
a4f0ad4024 Add and, or type parsing 2022-10-02 11:53:15 +09:00
Shunsuke Shibayama
05c434781b Fix a type instantiating bug 2022-10-02 11:37:01 +09:00
Shunsuke Shibayama
3147dfb1d8 Fixed to define subroutine as Type::Failure even if type checking fails 2022-10-01 16:07:03 +09:00
Shunsuke Shibayama
2c15b057de Add occur check 2022-10-01 16:04:28 +09:00
Shunsuke Shibayama
f33db307b6 Add urllib, Bytes 2022-10-01 13:42:34 +09:00
Shunsuke Shibayama
423206920a Add execution test 2022-10-01 01:11:31 +09:00
Shunsuke Shibayama
be1c603ba9 Merge branch 'main' into py-method-decl 2022-10-01 00:11:50 +09:00
Shunsuke Shibayama
d040bb80f2 Fix algebraic types inferring bugs 2022-10-01 00:11:32 +09:00
Shunsuke Shibayama
b10f486040 Merge branch 'main' into py-method-decl 2022-09-30 19:32:58 +09:00
Shunsuke Shibayama
62ba267b33 Add exit, panic 2022-09-30 19:14:45 +09:00
Shunsuke Shibayama
33edcd2e1c Implement Python class method declarations 2022-09-30 18:21:18 +09:00
Shunsuke Shibayama
622e1fa350 Fix lowerer crash bugs 2022-09-30 15:46:27 +09:00
Shunsuke Shibayama
99ced41c87 Fix Readable type 2022-09-30 14:31:39 +09:00
Shunsuke Shibayama
9dd2da9628 Fix .read type 2022-09-30 14:09:38 +09:00
Shunsuke Shibayama
96c5527134 Improve: inferring the overall type from the method 2022-09-30 01:22:22 +09:00
Shunsuke Shibayama
cd168ef131 Impl with! 2022-09-29 23:56:02 +09:00
Shunsuke Shibayama
db84321ff8 Add type definitions for open! and with! 2022-09-29 21:50:28 +09:00
Shunsuke Shibayama
23a6f630c9 Fix import to be called from anywhere 2022-09-29 11:48:38 +09:00
Shunsuke Shibayama
f548f9e6ef Add type specification for array and range types 2022-09-28 00:05:23 +09:00
Shunsuke Shibayama
348a37a746 Fix to continue compilation even if module compilation fails 2022-09-27 23:18:15 +09:00
Shunsuke Shibayama
0a731bfd93 Add ErgConfig::with_path 2022-09-27 09:43:27 +09:00
Shunsuke Shibayama
4d6c7f7590 Add d.er syntax 2022-09-26 21:49:33 +09:00
Shunsuke Shibayama
aacad4fc8e Fix type ascription bugs 2022-09-26 14:50:28 +09:00
Shunsuke Shibayama
5aae4a69a5 Split cache between Python and Erg modules 2022-09-26 14:03:06 +09:00
Shunsuke Shibayama
334b9d9f3a Improve error output 2022-09-26 01:21:06 +09:00
Shunsuke Shibayama
f1b8b5a6b8 Fix inferring bugs 2022-09-26 01:04:42 +09:00