Code Assist Cont...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Aw: Re: Aw: Re: Aw: Re: Aw: Re: Re: Aw: Re: Aw: Code Assist Cont...

jtuchel
Hi Seth,

now that you came up with the term Regex (I was just talking about a simple * wildcard) ;-)

The old VBRegex goodie that is also available for VAST on VASTGoodies only supports Regex 1.1, which means that quantifiers like {1,5} don't work.

To me it seems like a bad thing that in a world where almost any language supports regex out of the box (I am thinking of JavaScript, Java, Ruby, Perl) there is no decent support for regular expressions in Smalltalk... At least VAST is no worse than the rest of the gang, because Vassily's goodie is used in all dialects, based on the last 1999 version.

But coming back to Code Assist: I am not sure a full blown regex support would be needed. I guess nobody will really ask for methods or classes by a pattern like [A-D|XY]*\d  ;-)))

Joachim

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/A_I_iJhGtKkJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: Aw: Re: Aw: Re: Aw: Re: Aw: Re: Re: Aw: Re: Aw: Code Assist Cont...

Seth Berman
Joachim,

Agreed, in my mind I always translate '*' to ("anything", "whatever", 'I don't care").  I think anything more specific like "show me methods that begin with 'a' following by a 3 letters or 2 digits followed by....." would just be superfluous for this use case.
And as you pointed out....a lot more work..:)

Seth

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/_QogIWjv0usJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
Reply | Threaded
Open this post in threaded view
|

Aw: Re: Aw: Re: Aw: Re: Aw: Re: Re: Aw: Re: Aw: Code Assist Cont...

Marten Feldtmann-2
In reply to this post by jtuchel
Hmm, actually if someone is willing to try out external libraries there are at least two up-to-date solutions available:

1) Binding for the simple code page oriented regular expressions via TRE library, documented here
2) Binding for UTF-8 oriented regular expression via ICU library


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/0v6Tj163IeoJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.
12