
25 Jul
2005
25 Jul
'05
11:26 p.m.
The new Perl 6 has a nice feature called junctions. See http://www.perl.com/pub/a/2003/07/29/exegesis6.html?page=4 ...
I'm interested: this has been on my language wishlist for years. At the time I did something crude with regexes to pre-process C++ code, but realized I needed a full C++ parser, so the project got shelved. I also wanted to be able to have ranges, e.g. if( x == any(0..9) ) {...} else if( x == any(10..99,SPECIAL1,SPECIAL2) ) {...} else { assert(x==NOT_SET); } I've not looked at your code yet, but could it (theoretically) be expanded to cover the above syntax? Darren