Shunsuke Shibayama
4a0143302f
Fix #272
2022-12-05 17:21:46 +09:00
Shunsuke Shibayama
f21715c8c1
Update transpile.rs
2022-12-05 11:13:38 +09:00
Shunsuke Shibayama
b0fe1103f3
Add inc!
, dec!
to Int
2022-12-05 02:34:35 +09:00
Shunsuke Shibayama
6cb3231845
Fix a refinement + union types bug
2022-12-05 00:41:37 +09:00
Shunsuke Shibayama
188f8ad965
Update tyvar.rs
2022-12-04 12:30:31 +09:00
Shunsuke Shibayama
f36d54f51e
WIP: tuple, array match guard codegen
2022-12-04 12:16:37 +09:00
Shunsuke Shibayama
e9d0642b29
Fix a desugaring bug
2022-12-04 11:44:13 +09:00
Shunsuke Shibayama
48f91f969b
Fix match crashes
2022-12-04 11:43:39 +09:00
Shunsuke Shibayama
85370fb051
Update desugar.rs
2022-12-04 00:26:42 +09:00
Shunsuke Shibayama
01a8b05707
Update parse.rs
2022-12-03 23:59:46 +09:00
Shunsuke Shibayama
1b1b31a245
Update parse.rs
2022-12-03 23:41:28 +09:00
Shunsuke Shibayama
46029c0abc
Update value.rs
2022-12-03 20:13:44 +09:00
Shunsuke Shibayama
3e24a1de72
Update re.d.er
2022-12-03 19:57:04 +09:00
Shunsuke Shibayama
0f6e96cb97
Update codegen.rs
2022-12-03 19:56:45 +09:00
Shunsuke Shibayama
5e1d5b4523
Implement Patch transpiling
2022-12-03 13:31:05 +09:00
Shunsuke Shibayama
15a7be482c
Merge branch 'main' into patch
2022-12-03 11:39:19 +09:00
Shunsuke Shibayama
f1f3449d49
Update transpile.rs
2022-12-03 00:40:12 +09:00
Shunsuke Shibayama
5e29de9b53
Update transpiler
2022-12-02 23:56:39 +09:00
Shunsuke Shibayama
b433a703dc
Update eval.rs
2022-12-02 22:17:00 +09:00
Shunsuke Shibayama
bade70ef91
Implement Patch
2022-12-02 20:03:02 +09:00
Shunsuke Shibayama
afad52c449
Forbid accessing to a mut object in a func
2022-12-01 23:11:42 +09:00
Shunsuke Shibayama
9b1457b695
Fix #265
2022-12-01 23:02:06 +09:00
Shunsuke Shibayama
08a92bbbc1
Fix if codegen bugs
2022-11-30 23:58:19 +09:00
Slug
cafdd8ac35
Merge pull request #249 from GreasySlug/func-and-proc-hint
...
Since a function is a subtyping of a procedure, it can take a function as an argument only if it can take a procedure as an argument.
However, the reverse is not possible, so a type mismatch is detected.
A hint message for each lang for this is added.
2022-11-30 21:13:47 +09:00
GreasySlug
c026f14a4d
Clean: fix wrong color and update messages
2022-11-30 21:06:12 +09:00
Shunsuke Shibayama
44b21e223e
Update parse.rs
2022-11-30 20:41:01 +09:00
Shunsuke Shibayama
0cb883d22c
Update lex.rs
2022-11-30 01:27:10 +09:00
Shunsuke Shibayama
708d154f60
Fix #255
2022-11-30 01:18:47 +09:00
GreasySlug
f8b3c0d70f
Add: proc and func hint
2022-11-29 22:41:01 +09:00
Shunsuke Shibayama
99dab80003
Add test cases for args.er
2022-11-29 21:21:44 +09:00
Shunsuke Shibayama
53a165e1b8
Add test cases for args.er
2022-11-29 20:28:15 +09:00
Shunsuke Shibayama
2f7d810685
Fix kw args bugs & add a test
2022-11-29 20:16:38 +09:00
Shunsuke Shibayama
eed96967ed
Improve error indication for invalid kw args
2022-11-29 14:49:41 +09:00
Shunsuke Shibayama
aa90b09254
Improve error messages for unexpected keyword args
2022-11-29 14:43:27 +09:00
Shunsuke Shibayama
7a23e49ddb
Update transpile.rs
2022-11-29 14:14:21 +09:00
Shunsuke Shibayama
4d226dafcb
Fix #255
2022-11-29 14:06:10 +09:00
Shunsuke Shibayama
397214554a
Add lambda block use check
2022-11-29 01:15:24 +09:00
Shunsuke Shibayama
bc52b448e2
Add ErrorArtifact
2022-11-29 00:39:57 +09:00
Shunsuke Shibayama
c77bb8b336
Implement instant block transpiling
2022-11-28 23:45:51 +09:00
Shunsuke Shibayama
56de07ee14
Fix #261
2022-11-28 22:23:46 +09:00
Shunsuke Shibayama
1f368e1a8d
Improve error messages for deleted variable access
2022-11-28 22:13:48 +09:00
Shunsuke Shibayama
a57d5f6dfd
Update error.rs
2022-11-28 21:59:03 +09:00
Shunsuke Shibayama
043ee544e6
Change CompleteArtifact
to be able to hold non-HIR structs
2022-11-28 21:52:46 +09:00
Shunsuke Shibayama
1f33e3b642
Change UnusedError to Warning
2022-11-28 17:01:35 +09:00
Shunsuke Shibayama
13013b1641
Fix #259
2022-11-28 13:32:08 +09:00
Shunsuke Shibayama
fde5a33d54
Improve error message for referring to a variable before its definition
2022-11-28 10:38:01 +09:00
Shunsuke Shibayama
df0fba34bd
Fix #205
2022-11-28 00:21:44 +09:00
Shunsuke Shibayama
a373185dec
Merge branch 'main' into fix-#247
2022-11-27 20:31:50 +09:00
Shunsuke Shibayama
111a9f5615
Fix #247
2022-11-27 20:24:11 +09:00
Shunsuke Shibayama
9ac8248609
Implement some primitive types methods
2022-11-27 16:35:50 +09:00