To spooq:
Consider this snip of C++, via Boost/Spirit:
rule<> LetterE = chr_p('e') | chr_p('E');
The bad news, of course, is all the excessive chr_p stuff. The good
news is that's raw C++, not even a string, and it all compiles at
compile time.
Giles Bowkett wrote:
> Sorry, why do you want to do this in the first place? The original
> post mentioned unit testing, if you want to unit test JavaScript,
> there are much easier ways.
It's a secret. You'l see!...
--
Phlip