Open ewanmellor opened 9 years ago
This can be set so that the parser will accept empty input. The parse* methods will return PEGKitSuccessfulEmptyParse in that case.
Note that we need to check that we're actually at the end of the stream, otherwise we're going to accept every bad parse as an empty one.
This can be set so that the parser will accept empty input. The parse* methods will return PEGKitSuccessfulEmptyParse in that case.
Note that we need to check that we're actually at the end of the stream, otherwise we're going to accept every bad parse as an empty one.