Commit graph

73 commits

Author SHA1 Message Date
Shunsuke Shibayama
400c173f38 Move all constructors of Type to constructors 2022-08-26 12:39:35 +09:00
Shunsuke Shibayama
5b5234f477 Create erg_type crate 2022-08-26 11:52:11 +09:00
Shunsuke Shibayama
b2322c7fd7 Split ty module into several modules 2022-08-26 09:27:51 +09:00
Shunsuke Shibayama
eb2151cc8a Divide Context into some modules 2022-08-26 08:58:16 +09:00
Shunsuke Shibayama
c4986248f0 Divide Context into some modules by functions 2022-08-26 08:36:25 +09:00
Shunsuke Shibayama
f78c89665b WIP: fix type checker bugs
Instantiate each time when comparing quantified types
2022-08-25 02:23:41 +09:00
Shunsuke Shibayama
0ebb0ce94c Add LimitedDisplay 2022-08-24 18:51:12 +09:00
Shunsuke Shibayama
7633618e76 WIP 2022-08-24 17:23:48 +09:00
Shunsuke Shibayama
00db622f2b Improve error message indication for op calls 2022-08-23 22:48:06 +09:00
Shunsuke Shibayama
411c55467f Add some builtin APIs
`Mutable` trait
`In` trait
`Immutizable` trait
`Mutizable` trait
`__in__` operator
2022-08-23 18:01:51 +09:00
Shunsuke Shibayama
d615274bfb Fix checker bugs 2022-08-23 18:00:21 +09:00
Shunsuke Shibayama
45945ae9b4 WIP: type checking for records 2022-08-23 14:48:56 +09:00
Shunsuke Shibayama
ce5f551bc7 Update codegen.rs 2022-08-23 08:43:32 +09:00
Shunsuke Shibayama
8dcc44b9cb Fix private variables to be completely inaccessible 2022-08-23 08:38:39 +09:00
Shunsuke Shibayama
1532496a32 Update JA/compiler docs 2022-08-23 08:24:15 +09:00
Shunsuke Shibayama
870357fd49 Update version (v0.2.8) 2022-08-23 00:39:49 +09:00
Shunsuke Shibayama
5d6fa241e8 Add compile mode 2022-08-23 00:27:05 +09:00
Shunsuke Shibayama
5af5f186bb Update version (v0.2.7) 2022-08-22 23:52:31 +09:00
Shunsuke Shibayama
88ac00dcaa Implement unimplemented features related to visibility 2022-08-22 23:48:40 +09:00
Shunsuke Shibayama
a37cf90f38 Update codegen.rs 2022-08-22 23:17:08 +09:00
Shunsuke Shibayama
20aaf6a53e Impl: variable visibility 2022-08-22 23:15:07 +09:00
Shunsuke Shibayama
a6f9e89ffc Parser: impl Record 2022-08-22 17:21:43 +09:00
Shunsuke Shibayama
3ae3fd997b WIP: Impl TyParamIdx 2022-08-22 13:41:59 +09:00
Shunsuke Shibayama
b01f95a6d8 WIP: support doc test 2022-08-22 12:47:51 +09:00
Shunsuke Shibayama
93561f56b1 Add test code for Context 2022-08-22 12:30:58 +09:00
Shunsuke Shibayama
b86f7ea5f5 WIP: Context::instantiate_trait 2022-08-22 12:11:59 +09:00
Shunsuke Shibayama
23ada0e6e4 Fix Context::deref_tyvar 2022-08-22 03:11:18 +09:00
Shunsuke Shibayama
e54b627507 Fix type-checker bugs 2022-08-22 02:57:52 +09:00
Shunsuke Shibayama
b0273a1bca Update context.rs 2022-08-21 17:42:56 +09:00
Shunsuke Shibayama
14c77e604d Add type_sort() 2022-08-20 09:47:15 +09:00
Shunsuke Shibayama
919bed1d9b Add mutable types 2022-08-20 09:25:21 +09:00
Shunsuke Shibayama
91118d87a6 Update ownercheck.rs 2022-08-20 07:41:06 +09:00
Shunsuke Shibayama
4ba1f4f59a Remove ConstObj (merge into ValueObj) 2022-08-20 07:38:33 +09:00
Shunsuke Shibayama
40d4b6da1d Update Parser: support for length-specified arrays 2022-08-19 19:35:02 +09:00
Shunsuke Shibayama
27379b1e95 Refactor context.rs 2022-08-19 16:37:34 +09:00
Shunsuke Shibayama
190c9ba59f Fix error reporting links 2022-08-19 12:44:37 +09:00
Cai Bingjun
14c6d72f65 Merge branch 'main' of https://github.com/C-BJ/erg 2022-08-19 11:05:27 +08:00
Cai Bingjun
6f3fa64f90 Add error message translation for zh-CN and zh-TW 2022-08-19 11:02:41 +08:00
Shunsuke Shibayama
e36746f964 Fix Array type inference 2022-08-19 10:43:57 +09:00
Shunsuke Shibayama
2a68c89140 Move files 2022-08-19 08:52:10 +09:00
Shunsuke Shibayama
34fc074061 Update version (v0.2.6) 2022-08-19 02:51:29 +09:00
Shunsuke Shibayama
5fb55401e6 Fix match type inference bugs 2022-08-19 02:51:14 +09:00
Shunsuke Shibayama
791107cdd3 Fixed a type inference bugs
Pass source code line numbers instead of error numbers as a temporary hack
2022-08-19 01:33:05 +09:00
Shunsuke Shibayama
1078345a98 Fix to exit correctly when quit() or something is called 2022-08-18 20:27:28 +09:00
Shunsuke Shibayama
3314825fc1 Partial fix #57 2022-08-18 18:40:30 +09:00
Shunsuke Shibayama
53f665355b Fix #56 2022-08-18 18:07:33 +09:00
Shunsuke Shibayama
842fe10353 Add language target: simplified/traditional chinese
Ready for multilingualization. See /doc/EN/dev_guide/i18n_messages.md.
2022-08-18 16:31:35 +09:00
Shunsuke Shibayama
0f5d803a7e Fix print! type 2022-08-18 14:18:52 +09:00
Shunsuke Shibayama
15e7f8c5ad Fix: ParserRunner::eval parsing with default cfgs 2022-08-18 02:59:55 +09:00
Shunsuke Shibayama
fa6979fed2
Merge pull request #42 from ShantanuKumar/cargo-fmt
cargo fmt
2022-08-17 23:41:29 +09:00