Re: Using Flex/Lex in a Cocoa project
Re: Using Flex/Lex in a Cocoa project
- Subject: Re: Using Flex/Lex in a Cocoa project
- From: Dustin Robert Kick <email@hidden>
- Date: Fri, 15 Aug 2008 22:56:08 -0500
Just a thought, I haven't tried it, but the Core Foundation code is
pure C, so you could send the NSString as a CFString, which is "toll-
free bridged", which should mean you don't even have to make a cast
(though, again, I haven't worked with this), but basically, you should
be able to create a pure C function that invokes the lexer, and write
the flex code to use the Core Foundation libraries, accepting a
CFString, and I think that's all you'd need.
Dustin
KC9MEL
On Aug 15, 2008, at 9:53 PM, John Joyce wrote:
Right now, I'm toying with using Flex/Lex in a Cocoa project.
Unfortunately, I don't see a reliable or easy way to handle
NSStrings correctly all the time with Flex.
Does anybody have any suggestions for such text handling and
reliable unicode aware regexes?
I'm seriously not interested in implementing such details in C with
Flex.
Flex is fast and cool for that, but if it's going to be stupidly
difficult to use reliably with other languages on a mac, it's not a
good idea for me.
_______________________________________________
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:
@mac.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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