From: Volker v. N. <vol...@gm...> - 2015-10-19 07:20:00
|
When I looked at this yesterday I noticed that Dorai Sitaram had fully revised the portable regex parser which is the file pregexp.lisp in share/stringproc. First I would like to replace the old pregexp.lisp by the new one and to do some tests and to write the documentation for the Maxima interface functions which are in share/stringproc/sregex.lisp. Thereafter I will see how I can replace calls to nregex in src. Maybe I need help at this point to identify and understand all calls to nregex. The performance of pregexp.lisp will surely improve when it is compiled in src. I will keep you informed. Volker van Nek Am 18.10.2015 um 23:10 schrieb Robert Dodier: > On 2015-10-18, Volker van Nek <vol...@gm...> wrote: > >> In share/stringproc there is an alternative regex parser (portable regex >> parser by Dorai Sitaram) with an interface at Maxima level. >> >> It works nicely but it appears to be quite slow. > > Thanks for the reminder, I had forgotten about that. I suspect that > sregex is strictly more powerful than nregex; I'd be surprised if nregex > were any faster, but that is not a key point. Also it's helpful that > there is a Maxima interface for sregex. Given all that, I'm in favor of > moving sregex into src and nuking nregex. There are a few calls to > nregex in src, but those would be easily replaced by sregex, I believe. > >> When parsing RGBident with ibase:16 the parser wants hex-numbers >> starting with an alphabet-character to be zero-prefixed, > > Yes, good point. I forgot about that too. > > best, > > Robert Dodier > > > ------------------------------------------------------------------------------ > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > |