Commit graph

698 commits

Author SHA1 Message Date
Shunsuke Shibayama
6e33264f7a
Merge pull request #277 from erg-lang/fix-#276
Update codegen.rs
2022-12-08 15:41:48 +09:00
Shunsuke Shibayama
aa3bf7f44c Make SubMessage::msg, hint public members 2022-12-08 14:55:55 +09:00
Shunsuke Shibayama
ee3c23298e Update codegen.rs 2022-12-08 14:26:22 +09:00
Shunsuke Shibayama
b83b94ccde Update eval.rs 2022-12-07 23:28:26 +09:00
Shunsuke Shibayama
631e0f0df7 Update eval.rs 2022-12-07 23:26:18 +09:00
Shunsuke Shibayama
bbd92941e5 Update version (beta) 2022-12-07 23:07:17 +09:00
Shunsuke Shibayama
287a65276e Add Str <-> Int, Nat convertors 2022-12-06 23:44:24 +09:00
Shunsuke Shibayama
943824fdc2 Update eval.rs 2022-12-06 22:57:21 +09:00
Shunsuke Shibayama
c927d16bb8 Update codegen.rs 2022-12-06 22:02:50 +09:00
Shunsuke Shibayama
c15944c8e7 Update transpile.rs 2022-12-06 11:14:56 +09:00
Shunsuke Shibayama
f02a5285ad Add --output-dir option 2022-12-06 09:43:30 +09:00
Shunsuke Shibayama
246b7193a0 Fix if transpiling 2022-12-06 02:35:05 +09:00
Shunsuke Shibayama
b003c33953 Enhance os module type decls 2022-12-06 02:08:46 +09:00
Shunsuke Shibayama
84fba0a9d7 Update transpile.rs 2022-12-06 01:57:20 +09:00
Shunsuke Shibayama
a85286a3c7 Update version (0.6.0-beta.0) 2022-12-05 21:46:11 +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
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
48f91f969b Fix match crashes 2022-12-04 11:43:39 +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
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