pegkit icon indicating copy to clipboard operation
pegkit copied to clipboard

'Parsing Expression Grammar' toolkit for Cocoa/Objective-C

Results 29 pegkit issues
Sort by recently updated
recently updated
newest added

Given a rule: ``` atom = '('? Number | Word; ``` We got generated code: ``` objc - (void)__atom { if ([self predicts:EXPRESSIONPARSER_TOKEN_KIND_OPEN_PAREN, 0]) { if ([self predicts:EXPRESSIONPARSER_TOKEN_KIND_OPEN_PAREN, 0]) {...

Hi. I'm parsing a simple string that looks like this: `[Abc]` This parses fine, but when the app checks 'Abc', it's not valid so I'm raising an error by using...

This extends ParserGenApp so that it can be run with command line arguments, in which case it does not show the configuration window, but it just runs the parser generator...

There are custom setters in PKReader that assert that the counterpart field is nil. This means that we're guaranteed to assert if PKTokenizer.dealloc is ever called because one or other...

The setter for that field will assert PKTokenizer.stream is nil, which of course is not true if you're parsing a stream rather than a string.

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...

This allows callers to use tokenizers other than the PKTokenizer instances that parseString and parseStream create.

I created a podspec for PEGKit so it can be more easily used with CocoaPods. I have not done anything with adding the podspec to CocoaPods trunk (http://guides.cocoapods.org/making/getting-setup-with-trunk.html); this is...

I have a grammar that I translated from: http://www.sqlite.org/docsrc/doc/trunk/art/syntax/all-bnf.html It is an extremely rough draft of the grammar but is complete. I took what was in the above site and...

bug