Commit graph

96 commits

Author SHA1 Message Date
Shunsuke Shibayama
48f91f969b Fix match crashes 2022-12-04 11:43:39 +09:00
Shunsuke Shibayama
afad52c449 Forbid accessing to a mut object in a func 2022-12-01 23:11:42 +09:00
Shunsuke Shibayama
99dab80003 Add test cases for args.er 2022-11-29 21:21:44 +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
1f33e3b642 Change UnusedError to Warning 2022-11-28 17:01:35 +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
111a9f5615 Fix #247 2022-11-27 20:24:11 +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
GreasySlug
3eeafa3f94 Fix: consistent use of color 2022-11-23 17:35:37 +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
GreasySlug
a42d3b704d Fix: not displaying when not cols 2022-11-21 14:31:14 +09:00
GreasySlug
cc9fa5a12e Change: String to Cow<'a, str> 2022-11-21 14:21:03 +09:00
GreasySlug
ff24c62de1 Merge branch 'main' of https://github.com/GreasySlug/erg into split-err-msg 2022-11-20 10:41:10 +09:00
GreasySlug
d64712c7a7 Change: Option to Vec 2022-11-20 09:34:26 +09:00
Shunsuke Shibayama
81bea3bcee Remove AtomicStr 2022-11-20 01:42:55 +09:00
GreasySlug
4ae81aa05e Add: Location moved to ErrorCore 2022-11-18 12:31:44 +09:00
GreasySlug
000124fea8 Update: changed in support of SubMessage 2022-11-17 23:27:31 +09:00
GreasySlug
22652cb174 Merge branch 'split-err-msg' of https://github.com/GreasySlug/erg into split-err-msg 2022-11-17 23:01:07 +09:00
Shunsuke Shibayama
d8e2ece224 impl Display for ComileErrors 2022-11-17 20:48:42 +09:00
Shunsuke Shibayama
fe0153d98a Add Obj! type definition 2022-11-15 18:48:55 +09:00
Shunsuke Shibayama
308ab1c9f7 Remove Location::RangePair 2022-11-14 11:13:30 +09:00
GreasySlug
b2c75b1c38 Clean: StringSpan to StyledString 2022-11-14 07:49:34 +09:00
GreasySlug
35841d0647 Clean: add doc comments 2022-11-12 18:08:43 +09:00
GreasySlug
a16d46423f Update: use Span and const Theme in style.rs 2022-11-12 18:03:10 +09:00
GreasySlug
e29eb0b6ed Change: color.rs to style.rs 2022-11-12 14:17:29 +09:00
Shunsuke Shibayama
a9f65d73c1 Remove linter warnings 2022-11-05 03:17:05 +09:00
Shunsuke Shibayama
61037c998c print the number if the argument type is wrong 2022-10-28 00:23:47 +09:00
Shunsuke Shibayama
dcd4163c0f Update error.rs 2022-10-24 12:53:31 +09:00
Shunsuke Shibayama
87170f9bb3 Implement module compatibility checking 2022-10-19 17:21:37 +09:00
Cai Bingjun
198117413f trifle 2022-10-14 21:01:52 +08:00
Shunsuke Shibayama
40247a0891
Merge pull request #208 from C-BJ/main
compiler: Improve error messages
2022-10-14 14:47:43 +09:00
Shunsuke Shibayama
0db5e85cc8 Update error.rs 2022-10-14 14:42:31 +09:00
Shunsuke Shibayama
1b16f80b76 Update error.rs 2022-10-14 01:03:23 +09:00
Cai Bingjun
856052ddb9
compiler: Improve error messages 2022-10-13 20:39:39 +08:00
Shunsuke Shibayama
e647c9545f Merge branch 'main' into dict 2022-10-12 13:20:05 +09:00
Shunsuke Shibayama
6c4e1dca35 Downgrade erg_type from crate to module
This is to allow `ConstSubr` to have a `Context`
2022-10-12 02:28:25 +09:00
GreasySlug
900a5bb38e Add: floordiv 2022-10-11 15:06:15 +09:00
Shunsuke Shibayama
627f64e081 Fix: handling of literal parsing failures 2022-10-10 11:51:26 +09:00
Shunsuke Shibayama
aa7ae368dc Fix assert casting 2022-10-09 20:29:30 +09:00
Shunsuke Shibayama
4d7181f2f0 Add trait implementation check 2022-10-05 02:10:27 +09:00
Shunsuke Shibayama
6d903d2575 Add procedure assignment check 2022-10-03 23:09:07 +09:00
Shunsuke Shibayama
2f33c9b15d Add Del 2022-10-03 21:44:59 +09:00
Shunsuke Shibayama
4f6fbb50d0 Delete useless parameters 2022-10-03 00:46:39 +09:00
Shunsuke Shibayama
622e1fa350 Fix lowerer crash bugs 2022-09-30 15:46:27 +09:00
Shunsuke Shibayama
12664a0e1c Update error.rs 2022-09-30 14:41:36 +09:00