Commit graph

163 commits

Author SHA1 Message Date
Shunsuke Shibayama
f0d686cd7b Change ref and ref! to unary operators 2022-09-02 22:49:34 +09:00
Shunsuke Shibayama
ce94f81066 WIP: Add DataPack 2022-09-02 19:37:54 +09:00
Shunsuke Shibayama
d2ed277685 Impl ShortenedRecord desugaring 2022-09-02 14:40:01 +09:00
Shunsuke Shibayama
fc5ad07660 Update parser 2022-09-02 11:45:47 +09:00
Shunsuke Shibayama
6d09b8a4df Change data class packing/unpacking syntax 2022-09-02 09:25:11 +09:00
Shunsuke Shibayama
3550a0e4b5 Add hint.rs in context 2022-09-02 01:20:35 +09:00
Shunsuke Shibayama
0844fb2f7a Change Parser's parsing algorithm
The LHS value is first parsed as the RHS value, and when `=` or `->` comes in, it is converted as the LHS value.
2022-09-02 01:19:43 +09:00
Shunsuke Shibayama
66451ad61a Update docs 2022-09-02 01:16:03 +09:00
Shunsuke Shibayama
68a7fb5972 Merge branch 'main' into class 2022-09-01 21:37:37 +09:00
Shunsuke Shibayama
f71024e9d2 Fix #110 2022-09-01 19:12:26 +09:00
Shunsuke Shibayama
90f057af94 Update mod.rs 2022-09-01 17:50:30 +09:00
Shunsuke Shibayama
76aa25bf8f Remove unnecessary Parser methods 2022-09-01 17:26:21 +09:00
Shunsuke Shibayama
d790063ec2 Improve: LHS are parsed once as RHS, then conv to LHS 2022-09-01 16:46:10 +09:00
Yuna Tomida
afbea9d83c
add forgotten inheritances in builtin initialization 2022-09-01 15:20:20 +09:00
Shunsuke Shibayama
c60c2668d1 Refactor desugar.rs 2022-09-01 11:28:56 +09:00
Shunsuke Shibayama
33e762d437 Create a singular object version of get_similar_attr 2022-08-31 14:23:01 +09:00
Shunsuke Shibayama
a8e4658c67 Add importlib, io, socket, sys, time 2022-08-31 14:19:25 +09:00
Shunsuke Shibayama
c9ffceec57 Fix method call bugs 2022-08-31 12:31:51 +09:00
Shunsuke Shibayama
a71704329c Add rec_get_singular_ctx 2022-08-31 11:53:53 +09:00
Shunsuke Shibayama
af08945798 Split initialize.rs 2022-08-31 11:53:32 +09:00
Shunsuke Shibayama
705a13c5b5 Update version (v0.3.2) 2022-08-30 23:33:42 +09:00
Yuna Tomida
cd12e163f5
fixed unintensional ignorance of Subr in desugar_pattern 2022-08-30 23:22:20 +09:00
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