Commit graph

76 commits

Author SHA1 Message Date
Shunsuke Shibayama
51d55dc2ff Fix: trait existence checking bug 2022-10-07 19:30:12 +09:00
Shunsuke Shibayama
8d50e65400 Merge branch 'feature/implement-set' of https://github.com/GreasySlug/erg into pr/191 2022-10-07 18:26:24 +09:00
GreasySlug
ecb7ffb7f1 Clean: add and change to block comment 2022-10-07 16:53:48 +09:00
Shunsuke Shibayama
4fd5f30037 WIP 2022-10-07 16:47:33 +09:00
Shunsuke Shibayama
2cf4b5aba8 Add SetTypeSpec 2022-10-07 10:59:58 +09:00
GreasySlug
86203cc242 Add: comments 2022-10-06 20:41:15 +09:00
GreasySlug
129f67b925 Add: builtin Set and Set_mut 2022-10-06 20:40:54 +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
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
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
Shunsuke Shibayama
e55ab8c027 Add Show trait 2022-10-03 01:02:49 +09:00
Shunsuke Shibayama
60bc94058a Changed type of tmp_tv_ctx from &mut to & 2022-10-02 20:12:25 +09:00
Shunsuke Shibayama
05c434781b Fix a type instantiating bug 2022-10-02 11:37:01 +09:00
Shunsuke Shibayama
f33db307b6 Add urllib, Bytes 2022-10-01 13:42:34 +09:00
Shunsuke Shibayama
d040bb80f2 Fix algebraic types inferring bugs 2022-10-01 00:11:32 +09:00
Shunsuke Shibayama
62ba267b33 Add exit, panic 2022-09-30 19:14:45 +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
348a37a746 Fix to continue compilation even if module compilation fails 2022-09-27 23:18:15 +09:00
Shunsuke Shibayama
5aae4a69a5 Split cache between Python and Erg modules 2022-09-26 14:03:06 +09:00
Shunsuke Shibayama
f6e1a7b117 Remove unwraps 2022-09-24 19:15:55 +09:00
Shunsuke Shibayama
c6de914f3f Fix #177 2022-09-23 12:02:53 +09:00
Shunsuke Shibayama
9a4a702ebe Fixed to allow types to be uniquely determined between modules 2022-09-22 13:23:43 +09:00
Shunsuke Shibayama
6f3f00a369 Fixed to register <builtins> to mod_cache 2022-09-22 10:37:39 +09:00
Shunsuke Shibayama
201b313cd2 Add builder & linker 2022-09-21 01:21:17 +09:00
Shunsuke Shibayama
671fbee518 merge from trait 2022-09-21 01:17:11 +09:00
Shunsuke Shibayama
f12c2ba723 Add SharedModuleCache
Rename: RcCell -> Shared
2022-09-20 11:51:18 +09:00
Shunsuke Shibayama
a9d4e5982b Merge branch 'main' into beta 2022-09-19 10:45:09 +09:00
Shunsuke Shibayama
d62e86d238 Update mod.rs 2022-09-19 00:55:54 +09:00
Shunsuke Shibayama
45df0849fb Rename types
`Function` -> `Func`
`Procedure` -> `Proc`
2022-09-18 17:57:47 +09:00
Shunsuke Shibayama
abb6bcd320 WIP: trait implementation 2022-09-17 20:39:13 +09:00
Shunsuke Shibayama
3b7eebe041 WIP: Implement explicit type variable declarations 2022-09-17 17:25:07 +09:00
Shunsuke Shibayama
aa527dcbc8 WIP: impl Trait 2022-09-17 01:42:49 +09:00
Shunsuke Shibayama
346d00fcd8 Impl UserConstSubr 2022-09-16 23:33:10 +09:00
Shunsuke Shibayama
8f47e1e2dc Merge branch 'main' into trait 2022-09-16 10:56:31 +09:00
Shunsuke Shibayama
ba13cf25c8 Fix comparison operators types 2022-09-16 00:35:36 +09:00
Shunsuke Shibayama
4615c774f0 Fix __pow__, __mod__ types 2022-09-16 00:15:13 +09:00
Shunsuke Shibayama
bc67677ad6 Add Trait, Subsume 2022-09-15 11:37:12 +09:00
Shunsuke Shibayama
615d7937d9 Readable error messages 2022-09-14 21:46:12 +09:00
Shunsuke Shibayama
bc6eb37e39 Improve: show candidates for unification of projection-types 2022-09-13 15:34:27 +09:00
Shunsuke Shibayama
f8c2e4226e Fix Array!.map! type 2022-09-13 12:54:18 +09:00
Shunsuke Shibayama
605c2fc07e WIP: Fix type inferring bugs 2022-09-13 02:38:14 +09:00