Commit graph

85 commits

Author SHA1 Message Date
Shunsuke Shibayama
423206920a Add execution test 2022-10-01 01:11:31 +09:00
Shunsuke Shibayama
4e9dbe0e98 Update parse.rs 2022-09-30 18:50:33 +09:00
Shunsuke Shibayama
f0c9f04027 Update parse.rs 2022-09-29 12:04:16 +09:00
Shunsuke Shibayama
23a6f630c9 Fix import to be called from anywhere 2022-09-29 11:48:38 +09:00
Shunsuke Shibayama
f548f9e6ef Add type specification for array and range types 2022-09-28 00:05:23 +09:00
Shunsuke Shibayama
4d6c7f7590 Add d.er syntax 2022-09-26 21:49:33 +09:00
Shunsuke Shibayama
56d23936de Update parse.rs 2022-09-26 00:28:43 +09:00
Shunsuke Shibayama
9c967d32f6 Fix #174 2022-09-22 21:52:06 +09:00
Shunsuke Shibayama
201b313cd2 Add builder & linker 2022-09-21 01:21:17 +09:00
Shunsuke Shibayama
671fbee518 merge from trait 2022-09-21 01:17:11 +09:00
Shunsuke Shibayama
d8799f0895 Refactor
Add `ASTBuilder`, `Checker`
2022-09-20 14:42:37 +09:00
Shunsuke Shibayama
346d00fcd8 Impl UserConstSubr 2022-09-16 23:33:10 +09:00
Shunsuke Shibayama
91b7ba3c05 Add TypeAppArgs 2022-09-16 15:27:19 +09:00
Shunsuke Shibayama
d2ad7caaab Update ErgConfig and Runnable 2022-09-16 02:21:04 +09:00
Shunsuke Shibayama
14df5ce94c Update Runnable API types
This change allows Erg to pass information in a thread-safe manner.
2022-09-14 12:45:04 +09:00
Shunsuke Shibayama
424f82cf9e Update Parser 2022-09-14 11:17:19 +09:00
Shunsuke Shibayama
aa2aa79de9 Update parse.rs 2022-09-14 02:28:11 +09:00
Shunsuke Shibayama
8cb7dee425 Update parse.rs 2022-09-14 02:26:25 +09:00
Shunsuke Shibayama
fbb3f4892d Update parse.rs 2022-09-14 02:23:29 +09:00
Shunsuke Shibayama
b2d73f0a20 Update parse.rs 2022-09-11 23:43:06 +09:00
Shunsuke Shibayama
70aa7e6a97 Fix #95 2022-09-11 23:37:17 +09:00
Shunsuke Shibayama
a636a1d843 Add ASTLowererRunner
* add `--mode lower`
2022-09-11 11:56:41 +09:00
Shunsuke Shibayama
b0a93b5d4f Impl some unimplemented parsing methods 2022-09-10 22:44:04 +09:00
Shunsuke Shibayama
124240fe26 Merge branch 'main' into pr/136 2022-09-10 21:53:08 +09:00
Shunsuke Shibayama
1947f7518a Follow the latest changes and correct warnings 2022-09-10 21:33:13 +09:00
Yuna Tomida
d956c3f61d
Follow clippy warnings 2022-09-10 17:32:25 +09:00
GreasySlug
663d39da5d Add parsing func using input content
instead of self.input()
2022-09-10 17:02:20 +09:00
GreasySlug
f836453761 Add exec() of ParserRunner 2022-09-10 09:05:30 +09:00
Shunsuke Shibayama
3895d29669 Fix visibility bugs 2022-09-10 01:42:23 +09:00
Shunsuke Shibayama
7a682db817 method_name: Option<Token> -> Option<Identifier> 2022-09-09 16:46:36 +09:00
Shunsuke Shibayama
60558459c8 Fix parser crashing bug 2022-09-08 09:57:41 +09:00
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