Re: [ANN] CoreParse
Re: [ANN] CoreParse
- Subject: Re: [ANN] CoreParse
- From: Philip Mötteli <email@hidden>
- Date: Mon, 06 Jun 2011 17:10:54 +0200
Hi,
Am 06.06.2011 um 00:12 schrieb Thomas Davie:
> On 5 Jun 2011, at 18:22, Jens Alfke wrote:
> On Jun 5, 2011, at 6:21 AM, Thomas Davie wrote:
>>
>>> I've just completed firming up the API and documentation for CoreParse. CoreParse provides a powerful tokenisation and parsing engine, which uses shift-reduce parsing (unlike ParseKit) to support a wide range of context free grammars.
>>>
>>> Parsers can be built quickly and easily using BNF like syntax.
>>
>> Cool! What advantages does this have over using a more-established tool like ANTLR? (“An Objective-C API” is an obvious answer, I suppose, but it doesn’t look that difficult to call into ANTLR-generated C++ code from Obj-C.)
>
> I've not investigated ANTLR, but you're right, my primary goal was a nice, clean, cocoa-like API in pure Obj-C only API. The only comparable API that I know of is ParseKit which uses recursive decent, and hence doesn't support a lot of grammars. By comparison there, I support SLR, LR(1) and LALR(1), so there's rather more coverage.
>
> I'd really appreciate you taking a look and reporting back if you find any interesting things that ANTLR or other tools does better.
I really appreciate how BN support is implemented in ParseKit: <http://parsekit.com/grammars.html>. I like it very much, that there are no numbers, but call backs for every token, using method-names (c. f. above URL under "Instantiating Grammar Parsers in Objective-C").
Thanks for your work
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden