Commit graph

110 commits

Author SHA1 Message Date
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
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
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
9ccfdadf22 Add TypeAscription 2022-09-25 20:05:52 +09:00
Shunsuke Shibayama
6cfb0d1544 Prohibit inner scope type definition 2022-09-25 18:43:45 +09:00
Shunsuke Shibayama
7ec5af53d9 Fix: fake class -> real module 2022-09-23 00:16:45 +09:00
Shunsuke Shibayama
9c967d32f6 Fix #174 2022-09-22 21:52:06 +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
8c50c6b423 Fix some visibility bugs 2022-09-21 21:28:37 +09:00
Shunsuke Shibayama
9b0d66a63a Add "check" mode
Input::File(String) -> Input::file(PathBuf)
2022-09-21 14:01:20 +09:00
Shunsuke Shibayama
c1d92bc0f4 Fix lower bugs 2022-09-21 11:22:18 +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
d8799f0895 Refactor
Add `ASTBuilder`, `Checker`
2022-09-20 14:42:37 +09:00
Shunsuke Shibayama
9fa51809ea Rename: Linker -> Reorderer 2022-09-19 19:07:02 +09:00
Shunsuke Shibayama
bd17bf3299 Add DefKind 2022-09-18 17:56:58 +09:00
Shunsuke Shibayama
e4eed24a42 WIP: trait implementation 2022-09-17 22:26:56 +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
91b7ba3c05 Add TypeAppArgs 2022-09-16 15:27:19 +09:00
Shunsuke Shibayama
8f47e1e2dc Merge branch 'main' into trait 2022-09-16 10:56:31 +09:00
Shunsuke Shibayama
d2ad7caaab Update ErgConfig and Runnable 2022-09-16 02:21:04 +09:00
Shunsuke Shibayama
7455c4ac0f Delete resolve_trait 2022-09-16 00:19:51 +09:00
Shunsuke Shibayama
1951865e05 Update lower.rs 2022-09-15 15:00:24 +09:00
Shunsuke Shibayama
12f22f8bed Fix Context::lower_class_def 2022-09-15 11:36:34 +09:00
Shunsuke Shibayama
14df5ce94c Update Runnable API types
This change allows Erg to pass information in a thread-safe manner.
2022-09-14 12:45:04 +09:00
Shunsuke Shibayama
fe1b0fab70 Add AtomicStr 2022-09-14 12:11:06 +09:00
Shunsuke Shibayama
bc6eb37e39 Improve: show candidates for unification of projection-types 2022-09-13 15:34:27 +09:00
Shunsuke Shibayama
87a7a3afdf WIP: Fix unifying algorithm
Delete `unify` (only use `sub_unify`)
2022-09-13 12:55:16 +09:00
Shunsuke Shibayama
9079f15d21 Fix use-checking 2022-09-13 12:24:38 +09:00
Shunsuke Shibayama
605c2fc07e WIP: Fix type inferring bugs 2022-09-13 02:38:14 +09:00
Shunsuke Shibayama
c6b8d6a6df Add ClassDefType 2022-09-12 13:09:54 +09:00
Shunsuke Shibayama
164491c837 Fix reassignment bugs 2022-09-12 01:24:18 +09:00
Shunsuke Shibayama
c5b0a33d8e registered -> registered_info 2022-09-12 00:43:51 +09:00
Shunsuke Shibayama
c0742005ee Fix #72 2022-09-11 23:19:48 +09:00
Shunsuke Shibayama
a636a1d843 Add ASTLowererRunner
* add `--mode lower`
2022-09-11 11:56:41 +09:00
Shunsuke Shibayama
1947f7518a Follow the latest changes and correct warnings 2022-09-10 21:33:13 +09:00
Yuna Tomida
d956c3f61d
Follow clippy warnings 2022-09-10 17:32:25 +09:00
Shunsuke Shibayama
048e281268 Refactor: method_defs -> methods_list 2022-09-10 17:17:51 +09:00
Shunsuke Shibayama
c5f2d816af Impl const accessing attributes 2022-09-10 16:32:03 +09:00
Shunsuke Shibayama
d986750a66 Fix error handling bugs 2022-09-10 15:10:55 +09:00
Shunsuke Shibayama
3895d29669 Fix visibility bugs 2022-09-10 01:42:23 +09:00
Shunsuke Shibayama
75f3444eb7 WIP: impl visibility validation 2022-09-09 17:08:05 +09:00