Commit graph

256 commits

Author SHA1 Message Date
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
Brendan Hansknecht
4b901814f7 Fix memory leak with bumpalo String 2020-11-01 18:04:40 -08:00
Brendan Hansknecht
936521db1f Make clippy happy 2020-11-01 09:41:46 -08:00
Brendan Hansknecht
d00189530a Add fuzzing to the parser.
As part of this, todos and panics where moved outside of this module
to elsewhere when they would cause fuzzing to fail.
2020-10-30 22:04:54 -07:00
Folkert
047746c716 use only references (no Vec) in canonical AST 2020-10-29 00:12:44 +01:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Richard Feldman
153308dbf1 clippy 2020-07-27 01:10:04 -04:00
Richard Feldman
9f9ce327d4 Lazily validate that input bytes are valid UTF-8 2020-07-27 01:10:04 -04:00
Folkert
29c3eebace parse default optional expressions in pattern matches 2020-07-20 00:52:16 +02:00
Richard Feldman
85f51ef39d Introduce optional record fields 2020-07-18 12:31:17 -04:00
Richard Feldman
152e06186b Reserved keywords can't be patterns 2020-07-17 19:49:27 -04:00
Richard Feldman
ef010d4dec Fix parsing bug for malformed when-branches 2020-07-17 19:49:27 -04:00
Folkert
672b67d527 initial version of annotation formatting 2020-07-09 17:41:21 +02:00
Chad Stearns
830394eadf Comply with clippy 2020-06-21 17:24:14 -04:00
Richard Feldman
ff953021d5 Fix parser bug with newline after '=' in def
Fixes #51
2020-05-03 08:50:55 -04:00
Richard Feldman
2eea57a51a Add some more detail to a todo 2020-05-02 22:19:29 -04:00
Richard Feldman
101dc80ae5 Move parse::operator into module::operator 2020-05-01 21:58:53 -04:00