On Mar 20, 1:30 pm, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> Andrei Aiordachioaie wrote:
> > I'm a final-year student from Jacobs University Bremen, studying
> > Computer Science. I am interested in improving the regular expression
> > code for Vim, as part of the Summer of Code, and maybe even
> > afterwards. The following are what I could do for the summer. Do you
> > think it's too little or too much?
>
> > I understand that a new regexp engine has been written during SoC last
> > year, but it is not officially included in vim. I would like to do the
> > necessary testing and integrate the new engine in the main code. So
> > far, I was only able to download the archives that the 2 students
> > submitted. Is there an existing svn repo that includes the vim code
> > and the new engine?
>
> Sounds good.  Look here for the work done so 
> far:http://code.google.com/p/vim-soc-regexp/
>
> > An idea that sounds really interesting is using approximate regular
> > expressions to find similar words. There are a number of projects that
> > have already implemented it, such as Agrep, libTre, or lib-bitap. Do
> > you think that we could use one of the existing libraries for the
> > algorithm itself ? Or would we have to reimplement it?
>
> Let's do the fast regexp work first.  It's easy to underestimate how
> much work this stuff is.
>
> > Also, regexps in vim look hard to read, because of the many escapes
> > that have to be used by default. Maybe we should consider enabling the
> > "very magic" in the global configuration file, when vim gets
> > installed ? This would make  vim regexps friendlier for newbies :-)
>
> No, because this breaks Vim script portability.  Currently there is the
> 'magic' option, and that is a problem already.  Most scripts assume it's
> on, thus if you switch it off lots of things will fall down.
>
> > What exactly is the T-search algorithm, for searching strings ? I
> > tried googling for "C't article, August 1997", but I don't think there
> > was anything relevant. Can someone point me in the right direction?
>
> I don't have a reference at hand...
>
> > There are a number of small things or bugs related to regexps that I
> > could help with, such as
> >    Regexp: matchlist('12a4aaa', '^\(.\{-}\)\(\%5c\@<=a\+\)\(.\+\)\?')
> > returns ['12a4', 'aaa', '4aaa'], but should be ['12a4', 'aaa', '']
> > or
> >    Recognize "[a-z]", "[0-9]", etc. and replace them with the faster
> > "\l" and "\d".
> > or
> >    allowing ":23,45/pat/flags" to search for "pat" in lines 23 to 45?
>
> > Do you have any other ideas or suggestions?
>
> These are also nice, but the main work is to get the fast regexp engine
> included.  I'm sure this will take up the two months that a student has
> available.
>
> --
> hundred-and-one symptoms of being an internet addict:
> 161. You get up before the sun rises to check your e-mail, and you
>      find yourself in the very same chair long after the sun has set.
>
>  /// Bram Moolenaar -- [EMAIL PROTECTED] --http://www.Moolenaar.net  \\\
> ///        sponsor Vim, vote for features --http://www.Vim.org/sponsor/\\\
> \\\        download, build and distribute --http://www.A-A-P.org       ///
>  \\\            help me help AIDS victims --http://ICCF-Holland.org   ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui