pegkit icon indicating copy to clipboard operation
pegkit copied to clipboard

Implement PKParser.isEmptyOK.

Open ewanmellor opened this issue 9 years ago • 0 comments

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.

ewanmellor avatar Jun 15 '15 01:06 ewanmellor