pegkit icon indicating copy to clipboard operation
pegkit copied to clipboard

Generic delegate callbacks

Open ewanmellor opened this issue 9 years ago • 0 comments

Add a new feature to call parser:willMatch: or parser:didMatch: on the delegate whenever a rule is matched.

This adds a new PKParserDelegate protocol, so that the selectors are declared (though PKParser.init does not require this protocol to be implemented by its parameter, because this whole protocol is optional).

Move the parser:didFailToMatch: declaration to PKParserDelegate, now that we have such a thing.

ewanmellor avatar Sep 30 '15 22:09 ewanmellor