Template regexes, version 2

Ivan Senji ivan.senji_REMOVE_ at _THIS__gmail.com
Tue Feb 21 14:30:46 PST 2006


Craig Black wrote:
>>That looks scary :)
> 
> 
> Probably you are joking

I was joking (but it does look scary)

> , but I feel the need to defend my code anyway.  To 
> someone who doesn't know the syntax it is not going to be very readable. <g> 
> However, my code is way more readable than a lot of the regular expressions 

I guess i'll believe you.

> that I've seen.  If you don't believe me, google for regular expressions 
> that can be used to parse C++.  

Well I would be surprised to find that because C++ grammar isn't 
regular, it isn't even LR, it is something awfull.

> One benefit of my language over regular 
> expressions is that you can define subroutines.  

Interesting? What class of languages can it parse?

> Thus, it's not all one big 
> mess.  It's a bunch of smaller, little messes.  This makes a long regular 
> expression much more managable.
> 



More information about the Digitalmars-d mailing list