Commit graph

72 commits

Author SHA1 Message Date
Folkert
9edbf322c0 error message for when 2021-02-20 22:08:53 +01:00
Folkert
576b7974e8 if guard empty condition message 2021-02-20 16:30:56 +01:00
Folkert
bcf87f5df6 branch result 2021-02-20 15:51:57 +01:00
Folkert
f6fac092a4 checkpoint 2021-02-20 13:47:01 +01:00
Folkert
e007430584 infra for record patterns 2021-02-20 01:08:25 +01:00
Folkert
70b5e18c21 start building pattern parser 2021-02-20 00:35:03 +01:00
Folkert
2c9a80153d remove Bag 2021-02-08 00:33:29 +01:00
Folkert
38b21c3474 add lifetime to SyntaxError 2021-02-07 22:26:55 +01:00
Folkert
148fffe969 parameterize Parser on an Error type 2021-02-07 22:08:28 +01:00
Folkert
ae09b0b311 optimize = symbol checking 2021-02-04 23:27:19 +01:00
Folkert
aac75c6a25 factor out backtracking in def parsing 2021-02-04 21:34:28 +01:00
Folkert
7a02bcda8d cleanup 2021-02-03 23:33:13 +01:00
Folkert
59f547b2be fix trailing whitespace 2021-02-03 23:06:18 +01:00
Folkert
db7e604643 clippy 2021-02-03 22:47:28 +01:00
Folkert
d211ca7e61 WIP 2021-02-03 20:21:12 +01:00
Folkert
f6aa77e6a8 fix all gen and cli tests 2021-02-02 22:06:11 +01:00
Folkert
e643d1ea3c more backtracking 2021-02-02 18:47:58 +01:00
Folkert
872f83680f fix problem with negation/subtraction 2021-02-02 15:48:40 +01:00
Folkert
2def201a9a fix multiple consequtive defs 2021-02-02 15:26:00 +01:00
Folkert
95ebc8ded5 fix aliases and type annotations 2021-02-02 14:32:01 +01:00
Folkert
56f6770804 WIP 2021-02-02 01:56:50 +01:00
Folkert
4524012b2c fix problem with spaces in patterns 2021-02-01 14:39:18 +01:00
Sébastien Besnier
07d4f8dc15 make clippy happy 2020-12-28 19:54:17 +01:00
Sébastien Besnier
83aa5c1642 add final_comments to List's AST 2020-12-28 18:17:56 +01:00
Richard Feldman
e2804398b4 Fix keyword parsing bug 2020-12-02 21:56:31 -05:00
Sébastien Besnier
124800f8b9 fix bug parser with comment after ':' in signature 2020-11-25 10:31:49 +01:00
Sébastien Besnier
88373240a9 fix multiline type signature bug 2020-11-23 15:30:48 +01:00
Sébastien Besnier
932d9b1d16 fix region parsing 2020-11-21 15:57:12 +01:00
rvcas
72c85009c6 do not set an underscore on parse and only prefix in formatter 2020-11-18 08:25:40 -05:00
rvcas
1e7dcaebd8 finish parsing named underscores 2020-11-18 07:35:01 -05:00
rvcas
0088080636 check point for review 2020-11-17 23:46:40 -05:00
rvcas
8df5d5c13c feat(parse): support capturing a str in Pattern::Underscore 2020-11-17 21:53:49 -05:00
Sébastien Besnier
58acc59b01 correctly parse trailing commas in record 2020-11-13 19:02:26 +01:00
Sébastien Besnier
6ad1bb233a add TrailingComma to Record & little formatter refactor 2020-11-13 19:01:46 +01:00
Folkert
78063f87d7 fix tag pattern argument bug 2020-11-09 23:22:08 +01:00
Sébastien Besnier
099c56fcf6 make compiler happy after rebasing 2020-11-08 13:55:01 +01:00
Sébastien Besnier
66392eeeaf other parsing adjustment! 2020-11-08 13:48:19 +01:00
Sébastien Besnier
a6a4750501 fix parsing issue 2020-11-08 13:48:19 +01:00
Richard Feldman
6c01d02de0 Make ann_pattern and ann_type references 2020-11-08 13:48:19 +01:00
Richard Feldman
4633619e18 Use newline_char over ascii_char('\n') 2020-11-08 13:48:19 +01:00
Sébastien Besnier
cfbfbf09be cargo fmt 2020-11-08 13:45:47 +01:00
Sébastien Besnier
94006f1d8f make clippy happy.... again 2020-11-08 13:45:47 +01:00
Sébastien Besnier
8870776fb0 make clippy happy 2020-11-08 13:43:11 +01:00
Sébastien Besnier
f4c1af0f19 test_can pass 2020-11-08 13:43:11 +01:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Sébastien Besnier
d2d3681d7e fix issue in annotated_body parser -- now compiling! 2020-11-08 13:43:11 +01:00
Sébastien Besnier
29c8ea6d8e transform annotated_body parser into small functions 2020-11-08 13:43:11 +01:00
Sébastien Besnier
bffc597e4e remove unused annotation 2020-11-08 13:43:11 +01:00
Sébastien Besnier
efe3497cc9 add AnnotatedBody in AST enum type 2020-11-08 13:43:11 +01:00
Richard Feldman
61edcc7d03 Have ascii_char take a u8 2020-11-07 12:13:46 -05:00