Commit graph

16 commits

Author SHA1 Message Date
1c04d8dece Attempt to merge applicable multiple expecteds at the same spot.
Avoid counting a successful capture as an error at the current locaiton.
2023-08-04 20:28:26 -04:00
0c90b45d3a Remove Hint hack 2023-08-04 19:25:57 -04:00
797d3cc6b2 Try to improve error location identification 2023-08-04 19:25:47 -04:00
ef59915add Refactor error reporting to allow ignored errors to be reported on a successful pattern match 2023-08-04 18:31:21 -04:00
b287b1d9b6 WIP hack combinator to try and improve error messages. 2023-08-04 17:43:11 -04:00
8214f05fe3 Choose() returns the expected message from the alternative that made the furthest progress, if any did. 2023-08-04 02:18:07 -04:00
3bb125dd8c Regex pattern returns custom expects() if set 2023-08-04 02:17:16 -04:00
5c5884a39b Make End patterns instanced so expects() can be used on them 2023-08-04 01:33:40 -04:00
50df27c50e Add more ability to communicate what was expected in the error 2023-08-04 01:24:02 -04:00
7ad94d13a6 Report parse error position 2023-08-04 00:18:17 -04:00
36f78982e6 Make pattern mapping chained 2023-07-29 16:26:41 -04:00
e61485012e Make thunk used for recursive braces more understandable 2023-07-29 14:50:49 -04:00
9b87906c09 Break out Peg namespace to permit self-reference 2023-07-29 14:39:11 -04:00
a3cdc53330 Add End to Peg 2023-07-29 01:45:34 -04:00
4430580412 Add AtLeast to Peg helpers 2023-07-29 01:13:38 -04:00
71581253d5 factor out helpers for PEG parsing 2023-07-29 00:26:29 -04:00