Commit graph

671 commits

Author SHA1 Message Date
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
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
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
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
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
Shunsuke Shibayama
1a9ae3349d Update transpile.rs 2022-11-27 00:26:45 +09:00
Shunsuke Shibayama
2051692350 Split std files 2022-11-27 00:26:15 +09:00
Shunsuke Shibayama
a8dc65a916 Update lower.rs 2022-11-26 12:36:34 +09:00
Shunsuke Shibayama
f2fedf6ae8 Update version (v0.5.13) 2022-11-26 11:42:21 +09:00
Shunsuke Shibayama
54686b0c59 Fix #244 2022-11-26 11:39:18 +09:00
Shunsuke Shibayama
72af69a48e Update error.rs 2022-11-26 11:05:37 +09:00
Shunsuke Shibayama
d26909c317 Improve type mismatch messages 2022-11-25 17:20:39 +09:00
Shunsuke Shibayama
b769f65f4d Fix a subroutine type relation check bug 2022-11-24 22:55:50 +09:00
Shunsuke Shibayama
b6499473d1 Change built-in APIs' parameter names 2022-11-24 20:40:24 +09:00
Shunsuke Shibayama
7bcc766500 Add Runnable::initialize 2022-11-23 19:43:56 +09:00
GreasySlug
3eeafa3f94 Fix: consistent use of color 2022-11-23 17:35:37 +09:00
GreasySlug
f3a9ea728e Update: use ErrorCore loc instead of SubMessage's 2022-11-23 17:22:57 +09:00
Shunsuke Shibayama
2caa6b6ec9
Merge pull request #232 from erg-lang/split-err-msg
Split error messages
2022-11-23 15:55:19 +09:00
GreasySlug
31f2d8901c Add: test code simply and modify format 2022-11-23 13:48:53 +09:00
GreasySlug
dad6fd1996 Clean: into() convert to_string() or to_owned() 2022-11-22 14:29:24 +09:00
Shunsuke Shibayama
ab391620d4 Implement features for embedding 2022-11-22 09:14:25 +09:00
Shunsuke Shibayama
d5d2350834 Update transpile.rs 2022-11-22 02:31:48 +09:00
Shunsuke Shibayama
ce9c4250e0 Update inquire.rs 2022-11-22 02:15:39 +09:00