Commit graph

141 commits

Author SHA1 Message Date
Shunsuke Shibayama
824f85e18c Update tyvar.rs 2022-08-30 21:23:08 +09:00
Shunsuke Shibayama
de7832bf33 Implement variable-length/keyword arguments 2022-08-30 20:31:56 +09:00
Yuna Tomida
95c70f4aed
make debug log easier to see 2022-08-30 10:57:30 +09:00
Shunsuke Shibayama
d634948121 Update the type of log 2022-08-30 05:53:15 +09:00
Shunsuke Shibayama
0a851d83d2 Fix: display the parameter name when a type error is caused 2022-08-30 05:52:27 +09:00
Shunsuke Shibayama
eff1d0fd14 Fix AST formatting 2022-08-30 05:33:12 +09:00
Shunsuke Shibayama
246756b2d5 Fix tuple parsing 2022-08-30 05:32:52 +09:00
Shunsuke Shibayama
99ffee35b2 Implement access to array/tuple elements 2022-08-29 21:59:17 +09:00
Shunsuke Shibayama
6fd61efc76 Add Tuple1~Tuple8 2022-08-29 14:36:14 +09:00
Shunsuke Shibayama
bdb084c4ed Update initialize.rs 2022-08-29 14:27:06 +09:00
Shunsuke Shibayama
44530d5f52 Fix: parse nested tuples and tuples >= 3 elements 2022-08-29 14:13:45 +09:00
Shunsuke Shibayama
451d94d31b Impl Tuple type checking & code generating 2022-08-29 12:41:14 +09:00
Shunsuke Shibayama
11e89576e1 Merge remote-tracking branch 'github-desktop-GreasySlug/feature-parse-tuple' 2022-08-29 12:22:28 +09:00
Shunsuke Shibayama
2f225c4630 Impl Tuple parsing 2022-08-29 12:14:26 +09:00
Shunsuke Shibayama
b730383065 Fix a type inference bug for dependent procedural methods 2022-08-29 00:48:52 +09:00
Shunsuke Shibayama
356906a5fe Fix code generation of else-less if 2022-08-28 11:45:02 +09:00
Shunsuke Shibayama
bff720ab9d Update parse.rs 2022-08-28 11:39:04 +09:00
Shunsuke Shibayama
f847029e16 Merge branch 'do-parse' 2022-08-28 11:33:09 +09:00
Shunsuke Shibayama
1985281e26 Impl do parsing 2022-08-28 11:32:50 +09:00
Shunsuke Shibayama
9d0eb6feb8 Update version (v0.3.1) 2022-08-28 10:37:26 +09:00
Shunsuke Shibayama
49fb4848a2 Fix minor bugs
* Fix Lambda parsing bugs
* Fix a bug that is registered as parameters instead of variables
* Fix Lambda formatting
2022-08-28 10:34:12 +09:00
Shunsuke Shibayama
259ba2c172 Update Cargo.toml 2022-08-28 03:23:15 +09:00
Shunsuke Shibayama
8e50ed8384 Update version (v0.3.0) 2022-08-28 03:20:26 +09:00
Shunsuke Shibayama
bce13ef270 Implement code generation for records 2022-08-28 03:14:26 +09:00
Shunsuke Shibayama
84f11bf03b Update ownercheck.rs 2022-08-28 02:09:00 +09:00
Shunsuke Shibayama
b5ae9355af Update effectcheck.rs 2022-08-28 01:56:02 +09:00
Shunsuke Shibayama
4232243842 Fix type system bugs 2022-08-28 01:41:36 +09:00
Shunsuke Shibayama
026b891c22 WIP: Improve type inference system 2022-08-27 23:51:35 +09:00
Shunsuke Shibayama
263bf70baf WIP: fix stack overflow bug 2022-08-27 01:31:18 +09:00
Shunsuke Shibayama
baab3f1f90 WIP: Restructuring Context 2022-08-26 23:22:45 +09:00
Shunsuke Shibayama
6727b00054 Split custom types into Class and Trait 2022-08-26 17:24:55 +09:00
Shunsuke Shibayama
8e73b9b6b7 Add TypeCmpCache 2022-08-26 14:37:39 +09:00
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
e4e89f38f9 Create erg_type crate 2022-08-26 09:41:41 +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