Commit graph

54 commits

Author SHA1 Message Date
Shunsuke Shibayama
fe552e23b1 Fix parser bugs 2022-09-08 00:55:25 +09:00
Shunsuke Shibayama
0199adc2d0 Merge from main 2022-09-07 23:51:34 +09:00
Shunsuke Shibayama
5e4337cde1 Implement todo!() part of Parser 2022-09-07 23:45:57 +09:00
Shunsuke Shibayama
36aa226d10 Impl Linker 2022-09-06 14:43:01 +09:00
Shunsuke Shibayama
18116f14ed Impl DataPackVattern desugaring 2022-09-03 22:23:25 +09:00
Shunsuke Shibayama
263c43d74b WIP: Impl DataPack type checking 2022-09-03 20:58:28 +09:00
Shunsuke Shibayama
f0d686cd7b Change ref and ref! to unary operators 2022-09-02 22:49:34 +09:00
Shunsuke Shibayama
ce94f81066 WIP: Add DataPack 2022-09-02 19:37:54 +09:00
Shunsuke Shibayama
d2ed277685 Impl ShortenedRecord desugaring 2022-09-02 14:40:01 +09:00
Shunsuke Shibayama
fc5ad07660 Update parser 2022-09-02 11:45:47 +09:00
Shunsuke Shibayama
6d09b8a4df Change data class packing/unpacking syntax 2022-09-02 09:25:11 +09:00
Shunsuke Shibayama
0844fb2f7a Change Parser's parsing algorithm
The LHS value is first parsed as the RHS value, and when `=` or `->` comes in, it is converted as the LHS value.
2022-09-02 01:19:43 +09:00
Shunsuke Shibayama
76aa25bf8f Remove unnecessary Parser methods 2022-09-01 17:26:21 +09:00
Shunsuke Shibayama
d790063ec2 Improve: LHS are parsed once as RHS, then conv to LHS 2022-09-01 16:46:10 +09:00
Shunsuke Shibayama
de7832bf33 Implement variable-length/keyword arguments 2022-08-30 20:31:56 +09:00
Yuna Tomida
95c70f4aed
make debug log easier to see 2022-08-30 10:57:30 +09:00
Shunsuke Shibayama
246756b2d5 Fix tuple parsing 2022-08-30 05:32:52 +09:00
Shunsuke Shibayama
99ffee35b2 Implement access to array/tuple elements 2022-08-29 21:59:17 +09:00
Shunsuke Shibayama
44530d5f52 Fix: parse nested tuples and tuples >= 3 elements 2022-08-29 14:13:45 +09:00
Shunsuke Shibayama
11e89576e1 Merge remote-tracking branch 'github-desktop-GreasySlug/feature-parse-tuple' 2022-08-29 12:22:28 +09:00
Shunsuke Shibayama
2f225c4630 Impl Tuple parsing 2022-08-29 12:14:26 +09:00
Shunsuke Shibayama
bff720ab9d Update parse.rs 2022-08-28 11:39:04 +09:00
Shunsuke Shibayama
f847029e16 Merge branch 'do-parse' 2022-08-28 11:33:09 +09:00
Shunsuke Shibayama
1985281e26 Impl do parsing 2022-08-28 11:32:50 +09:00
Shunsuke Shibayama
49fb4848a2 Fix minor bugs
* Fix Lambda parsing bugs
* Fix a bug that is registered as parameters instead of variables
* Fix Lambda formatting
2022-08-28 10:34:12 +09:00
Shunsuke Shibayama
88ac00dcaa Implement unimplemented features related to visibility 2022-08-22 23:48:40 +09:00
Shunsuke Shibayama
20aaf6a53e Impl: variable visibility 2022-08-22 23:15:07 +09:00
Shunsuke Shibayama
a6f9e89ffc Parser: impl Record 2022-08-22 17:21:43 +09:00
GreasySlug
e3135778d5 Updated to remove field
With this, try_reduce_tuple were changed from self.lpop() to self.skip()
2022-08-21 16:56:44 +09:00
GreasySlug
c80cf11fa6 Added tuples parser with parentheses
note: tuples without parentheses are not implemented
2022-08-20 10:10:34 +09:00
Shunsuke Shibayama
17c175ea59 Update parse.rs 2022-08-20 09:47:21 +09:00
Shunsuke Shibayama
d7be8128ad Update parse.rs 2022-08-20 09:25:53 +09:00
Shunsuke Shibayama
eb23d9f532 Update parse.rs 2022-08-20 09:24:54 +09:00
Shunsuke Shibayama
40d4b6da1d Update Parser: support for length-specified arrays 2022-08-19 19:35:02 +09:00
Shunsuke Shibayama
80a311f635 Update parse.rs 2022-08-19 14:38:40 +09:00
Shunsuke Shibayama
580ccddfe5 Merge branch 'main' of https://github.com/erg-lang/erg 2022-08-19 12:32:51 +09:00
Shunsuke Shibayama
cafc941b10 Improve Parser debugging display 2022-08-19 12:32:40 +09:00
Cai Bingjun
14c6d72f65 Merge branch 'main' of https://github.com/C-BJ/erg 2022-08-19 11:05:27 +08:00
Cai Bingjun
6f3fa64f90 Add error message translation for zh-CN and zh-TW 2022-08-19 11:02:41 +08:00
Shunsuke Shibayama
e36746f964 Fix Array type inference 2022-08-19 10:43:57 +09:00
Shunsuke Shibayama
3314825fc1 Partial fix #57 2022-08-18 18:40:30 +09:00
Shunsuke Shibayama
842fe10353 Add language target: simplified/traditional chinese
Ready for multilingualization. See /doc/EN/dev_guide/i18n_messages.md.
2022-08-18 16:31:35 +09:00
Shunsuke Shibayama
15e7f8c5ad Fix: ParserRunner::eval parsing with default cfgs 2022-08-18 02:59:55 +09:00
Shunsuke Shibayama
fb3e42c57b Update parse.rs 2022-08-18 02:49:11 +09:00
Shunsuke Shibayama
08f6c79a0e Add ParserRunner::parse_from 2022-08-18 02:44:27 +09:00
Shunsuke Shibayama
fa33a2003b Create .pre-commit-config.yml 2022-08-17 23:42:32 +09:00
Shunsuke Shibayama
974bfc0b86 Delete unnecessary deps 2022-08-17 22:52:17 +09:00
Shunsuke Shibayama
4e91cb81cb
Merge branch 'main' into clippy 2022-08-17 01:26:00 +09:00
Shunsuke Shibayama
c79fcd5dbe Update version (v0.2.4)
A crash problem with file input has been fixed.
2022-08-17 00:48:19 +09:00
Félix Saparelli
7d3116f546
Apply trivial clippy fixes 2022-08-15 17:37:20 +12:00