Commit graph

88 commits

Author SHA1 Message Date
GreasrySlug
e5e9da5a7d refactor(parser): modify messages 2023-05-04 12:10:25 +09:00
Shunsuke Shibayama
ebd528ec47 Update parse.rs 2023-05-04 12:10:25 +09:00
Cai BingJun
709b29c6aa fix: modify Chinese error information 2023-05-04 12:10:25 +09:00
GreasySlug
f4dfb38c5b update: add seq and unclosed error 2023-05-04 12:10:24 +09:00
GreasySlug
fcf79f1a92 update: add chinese 2023-05-04 12:10:24 +09:00
GreasySlug
38cb160057 update: use classified err instead of syntax_error 2023-05-04 12:10:24 +09:00
GreasySlug
35db8c5565 add: handling when add: None is matched 2023-05-04 12:10:24 +09:00
Shunsuke Shibayama
730886021e feat: add special namespaces module/global 2023-05-03 14:32:09 +09:00
Shunsuke Shibayama
c4a0efae08 feat: add Python API type definitions 2023-05-03 00:54:05 +09:00
Shunsuke Shibayama
b3e09f213f fix: type inference failure of as operator
Now the `as` operator is a kind of type ascription, i.e., a special operator.
2023-04-26 23:41:35 +09:00
Shunsuke Shibayama
755f06bab3 test: check the number of warnings 2023-04-01 21:53:22 +09:00
Shunsuke Shibayama
6f334b6bcc refactor: Equal -> Assign 2023-03-30 01:27:51 +09:00
Shunsuke Shibayama
bf8cf61c7e refactor: use if let instead of option_enum_unwrap 2023-03-25 10:23:58 +09:00
Shunsuke Shibayama
77e3f498ef fix: file name collision problem of Input 2023-03-05 20:02:36 +09:00
Shunsuke Shibayama
d92f5284c8 feat: add restricted visibility syntax 2023-03-05 02:19:18 +09:00
Shunsuke Shibayama
3d310714f1 feat: support var-args lambda function 2023-03-03 16:01:20 +09:00
Shunsuke Shibayama
dd36942256 feat: implement some typevar-related syntax sugar
* add `TypeBoundSpec::Omitted`
* add `TypeAppArgsKind`
2023-03-01 23:35:19 +09:00
Shunsuke Shibayama
f9503ff134 refactor: Parser 2023-03-01 22:44:37 +09:00
Shunsuke Shibayama
a07ab4637e fix(parser): fix #400 2023-02-27 19:52:24 +09:00
Shunsuke Shibayama
536872b735 refactor: remove unnecessary fields (commas) in structs 2023-02-27 12:18:34 +09:00
Shunsuke Shibayama
1aa83f140a chore(els): improve signature help 2023-02-27 12:01:09 +09:00
Shunsuke Shibayama
c9dda183ab feat: implement Structural types 2023-02-23 01:37:54 +09:00
Shunsuke Shibayama
b4b02fd0f6 feat: implement methods declaration syntax 2023-02-17 01:26:04 +09:00
Shunsuke Shibayama
af0fff8226 fix(compiler): runtime type matching system 2023-02-12 01:34:12 +09:00
Shunsuke Shibayama
72b4425191
Merge pull request #362 from C-BJ/improve-repl
feat(REPL): improve interactive experience
2023-02-08 11:16:36 +09:00
Shunsuke Shibayama
d8f4d14abd feat(parser): add type_spec_to_expr 2023-02-06 12:04:15 +09:00
GreasySlug
beed07ec35 refactor: duplicate codes are put together 2023-02-04 22:07:12 +09:00
Shunsuke Shibayama
260691727a style: cargo fmt 2023-02-04 21:24:39 +09:00
GreasrySlug
79b116202d fix: place at-sign in expect_block 2023-02-03 21:14:48 +09:00
Cai Bingjun
556ce8e6aa
Merge branch 'main' into improve-repl 2023-02-02 15:07:52 +08:00
Shunsuke Shibayama
c7096b17f1 Merge branch 'main' into feature-var-params-fn 2023-02-01 02:05:09 +09:00
GreasrySlug
a0fe6d364c add: classify the block kind
todo
- use Parser instead of pattern matching
2023-01-31 09:46:01 +09:00
Shunsuke Shibayama
e246fad74d Fix #370 2023-01-28 12:54:42 +09:00
Shunsuke Shibayama
0019147007 Fix: doc comments cannot be used in method defs 2023-01-27 09:46:59 +09:00
GreasrySlug
97cde41592 update: use debug colors 2023-01-26 14:46:44 +09:00
Shunsuke Shibayama
23a7e2caf3 Add user-defined var-params function 2023-01-26 01:20:35 +09:00
Shunsuke Shibayama
1d24655588 Add REPL tests 2023-01-17 16:32:25 +09:00
Shunsuke Shibayama
a127564b31 Rename dir: compiler -> crates 2023-01-15 12:03:19 +09:00
Renamed from compiler/erg_parser/parse.rs (Browse further)