Joshua Warner
f22f96843e
Refactor ParseProblem
...
* Remove the `pos` field, which was always being assigned Position::default()
* Remove one use of this `pos`, by removing the never-used SyntaxError::ConditionFailed variant
* Adjust the other use to do what was probably intended - which is to say, pointing to the beginning of the def with the error
* Rename to FileError, reuse `SourceError` as an inner field, to avoid duplicating the `bytes`
2022-01-03 20:10:50 -08:00
Joshua Warner
5c1084c453
Introduce SourceError to represent an error + original source
2022-01-01 18:20:05 -08:00
Joshua Warner
f19220473a
Rename Located -> Loc
2021-12-22 19:18:22 -08:00
Joshua Warner
49818343dd
extract state
2021-12-16 17:13:53 -08:00
Anton-4
5ed5e2e6ee
fmt
2021-08-18 18:50:39 +02:00
Anton-4
5023fa3e75
progress on setting up def parser for top level defs
2021-08-16 20:05:21 +02:00
Folkert
38d925fea6
use new def parser for module defs
2021-03-17 17:28:27 +01:00
Folkert
cba55734cb
clean up helpers
2021-03-12 03:41:01 +01:00
Folkert
4e4854ceaa
remove unneeded argument
2021-03-12 02:48:07 +01:00
Folkert
3e554cb21f
cleanup
2021-03-11 21:21:00 +01:00
Folkert
e214674016
cleanup blankspace function usage
2021-03-11 16:37:42 +01:00
Folkert
91271d0308
don't leak implementation details
2021-03-09 23:20:31 +01:00
Folkert
65cee39041
remove attempting argument from parser state
2021-03-08 16:33:45 +01:00
Folkert
905301bf96
start giving header parsing good messages
2021-03-08 15:55:28 +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
d211ca7e61
WIP
2021-02-03 20:21:12 +01:00
Folkert
56f6770804
WIP
2021-02-02 01:56:50 +01:00
Richard Feldman
3e01df2bcf
Update parse tests to incorporate module headers
2020-11-23 00:08:49 -05:00
Brendan Hansknecht
11752117a5
Add other fuzz target
2020-10-31 18:56:08 -07: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