www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Regular expressions compiled?

reply Martin <Martin_member pathlink.com> writes:
Does D have a capability to compile regular expressions (with compiling other
source code)?

Interpreted regular expressions are much slower than compiled ones.

Can anyone tell if D has this capability or will get it in the future? 
Jun 29 2005
next sibling parent "Craig Black" <cblack ara.com> writes:
 Does D have a capability to compile regular expressions (with compiling 
 other
 source code)?
No. The regular expression support is a part of the Phobos run-time library.
 Interpreted regular expressions are much slower than compiled ones.
Stands to reason.
 Can anyone tell if D has this capability or will get it in the future?
Maybe in the distant future. I would not expect this to be a huge priority for Walter. -Craig
Jun 29 2005
prev sibling parent "Walter" <newshound digitalmars.com> writes:
"Martin" <Martin_member pathlink.com> wrote in message
news:d9trd1$s03$1 digitaldaemon.com...
 Does D have a capability to compile regular expressions (with compiling
other
 source code)?

 Interpreted regular expressions are much slower than compiled ones.

 Can anyone tell if D has this capability or will get it in the future?
The regular expression support is completely done in std.regexp, the compiler/language knows nothing about it.
Jun 29 2005