FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Are regexp working in minid2 yet?

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed Oct 22, 2008 5:46 am    Post subject: Are regexp working in minid2 yet? Reply with quote

Are regexp working in minid2 yet? Trying to use it I get this:
Code:
>>> global reg = regexp.compile(`package\s(org)\.eclipse\.swt(.*);\s`)
Error: stdin(1): No implementation of method 'compile' or opMethod for type 'namespace'
Traceback: stdin(1)
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Wed Oct 22, 2008 6:18 am    Post subject: Reply with quote

Ah, the API has been changed a bit, I just haven't updated the docs. You now create regexes like any other object:

Code:

>>> global reg = regexp.Regexp.clone(`package\s(org)\.eclipse\.swt(.*);\s`)
>>>


Also, all the free functions in regexp have been removed in favor of creating and using a Regexp object (partly because compiling regexes in Tango is so unbearably slow).

I'll update the docs. Thanks for reminding me Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group