Hi Keita,

Hello, I'm writing a code editor and so far, i've been using Flex for
regex-matching the whole document every time the text is changed and
coloring appropriately...

How are you doing this? How did you incorporate Flex or regex-matching?

I approached it using regex to parse the quoted and commented strings into single objects, then parse using regex for the language, then reinsert the quoted and commented strings. But this was using perl and scripting, whereas I now need to port to Cocoa.

I managed to get regex working in Cocoa using RegexKiteLite, but now need to move across the rest of my method.

I got this idea from some CocoaBuilders or CocoaDev forum/mailing list awhile ago

Do you have a link to the article?

but it's terribly inefficient and slow, especially with large documents.

I would hope that there's come Cocoa class for parsing source text into tokens etc, but don't know of anything.

Tom

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to