Commit graph

118 commits

Author SHA1 Message Date
Shunsuke Shibayama
a0ce142f7b chore: add record examples 2023-08-20 10:58:33 +09:00
Shunsuke Shibayama
5e71bd7fd0 feat: add Record.as_dict() 2023-08-20 02:02:53 +09:00
Shunsuke Shibayama
9308a910ca fix: #442 2023-07-24 09:32:31 +09:00
Shunsuke Shibayama
c181fc4ff6 fix: dict subtyping bug 2023-06-26 10:29:20 +09:00
Shunsuke Shibayama
4df11d8697 test: add dir-module testing 2023-05-13 11:50:35 +09:00
Shunsuke Shibayama
70510f6ae1 fix: a subtyping bug 2023-05-09 23:55:23 +09:00
Hanaasagi
ffb5f0e688 chore: fix all typo 2023-05-07 03:43:53 +09:00
Shunsuke Shibayama
44930f1c25 fix: type declaration bugs 2023-05-06 00:09:56 +09:00
Shunsuke Shibayama
68a233e6c3 fix: type-parameter instantiation bugs
add `itertools` module type definition
2023-04-29 22:38:36 +09:00
Shunsuke Shibayama
325d237f09 feat: add Dict.items/copy 2023-04-20 10:44:57 +09:00
Shunsuke Shibayama
e0d8306b3e feat: add Dict.keys/values/get 2023-04-20 02:19:31 +09:00
Shunsuke Shibayama
ffd33015d5 fix: external type resolving 2023-04-18 10:49:02 +09:00
Shunsuke Shibayama
839133863f feat: enhance assert casting 2023-04-16 23:32:52 +09:00
Shunsuke Shibayama
0c47c95f25 feat: check doc comments by the compiler 2023-04-06 23:41:24 +09:00
Shunsuke Shibayama
0ce0d1a073 test: update test cases 2023-03-29 21:20:28 +09:00
Shunsuke Shibayama
5876c24830 feat: isinstance narrowing 2023-03-29 11:24:53 +09:00
Shunsuke Shibayama
ccf02405d8 feat: add ==/!= narrowing 2023-03-29 01:32:29 +09:00
Shunsuke Shibayama
8bccc6b487 fix: sub-unification bug 2023-03-17 12:53:56 +09:00
Shunsuke Shibayama
fd99524bbe fix: union/intersection types bugs 2023-03-17 10:18:23 +09:00
GreasrySlug
08ad656240 style(python): format with black 2023-03-16 22:39:34 +09:00
Shunsuke Shibayama
0d8e574414 fix: add a field meta_t to TypeObj::Builtin 2023-03-13 13:07:35 +09:00
Shunsuke Shibayama
ee0366cfb4 fix: constant attribute searching bugs 2023-03-11 14:21:15 +09:00
Shunsuke Shibayama
d92f5284c8 feat: add restricted visibility syntax 2023-03-05 02:19:18 +09:00
Shunsuke Shibayama
5c6ea316f5 chore: remove unnecessary params 2023-03-03 10:01:05 +09:00
Shunsuke Shibayama
0495dd3d1b fix: eliminate unreachable errors 2023-03-02 10:51:01 +09:00
Shunsuke Shibayama
dd36942256 feat: implement some typevar-related syntax sugar
* add `TypeBoundSpec::Omitted`
* add `TypeAppArgsKind`
2023-03-01 23:35:19 +09:00
Shunsuke Shibayama
af3c912b17 feat: support tqdm 2023-02-25 01:58:37 +09:00
Shunsuke Shibayama
aaa6b40b24 feat: support Structural types for methods 2023-02-23 18:12:05 +09:00
Shunsuke Shibayama
2c3a27ed4b fix: Structural types instantiation/generalization 2023-02-23 02:35:05 +09:00
Shunsuke Shibayama
aa2cea60dd fix: quantified subroutine subtyping bugs 2023-02-22 02:40:51 +09:00
Shunsuke Shibayama
2574de3a68 fix: some bugs
Fixed:

* argument `_` of anonymous function disappears
* els crashes
* incomplete `.update!` codegen
2023-02-13 15:06:50 +09:00
Shunsuke Shibayama
2ad38717cd Merge branch 'main' into fix-type-matching 2023-02-13 02:31:37 +09:00
Shunsuke Shibayama
2dae0f4be9 Update trait.er 2023-02-12 22:05:07 +09:00
Shunsuke Shibayama
b1a3e97334 fix: crash 2023-02-12 11:04:41 +09:00
Shunsuke Shibayama
f178a011e0 Add module consts 2023-01-14 13:35:39 +09:00
Shunsuke Shibayama
c868ad7266 Move examples doesn't work yet 2023-01-07 20:04:35 +09:00
Shunsuke Shibayama
25dbca1a3e Update pyimport.er 2023-01-07 13:42:56 +09:00
Shunsuke Shibayama
21055ce392 Implement newtype notation 2023-01-06 18:13:21 +09:00
Shunsuke Shibayama
086d272433 Add importlib.machinery 2022-12-29 14:30:08 +09:00
Shunsuke Shibayama
d8f7e386c8 Enhance: empty classes can be generated by Class() 2022-12-23 22:16:22 +09:00
Shunsuke Shibayama
6a078f891c update!(i -> i - 1) -> dec! 2022-12-05 23:06:55 +09:00
Shunsuke Shibayama
4f2f9e79de Interpolation for sample scripts 2022-12-05 23:03:54 +09:00
Shunsuke Shibayama
47132cfab1 Implement string interpolation 2022-12-05 21:24:10 +09:00
Shunsuke Shibayama
52c76431ee Merge branch 'main' into patch 2022-12-05 17:25:45 +09:00
Shunsuke Shibayama
b0fe1103f3 Add inc!, dec! to Int 2022-12-05 02:34:35 +09:00
Shunsuke Shibayama
bade70ef91 Implement Patch 2022-12-02 20:03:02 +09:00
Shunsuke Shibayama
7078f95cec Update docs (string interpolation) 2022-12-02 00:29:17 +09:00
Shunsuke Shibayama
9b1457b695 Fix #265 2022-12-01 23:02:06 +09:00
Shunsuke Shibayama
14b143778f WIP: Enable to declare in class methods definitions 2022-11-07 17:37:46 +09:00
Shunsuke Shibayama
bdda0ac540 Fix kw call codegen bug 2022-11-05 15:52:37 +09:00