Alex-

Friday, December 10, 2004, 11:26:15 AM, you wrote:

AT> function StripComments theLine
AT>    local theResult
AT>    put token 1 to -1 of theLine into theResult
AT>     if quote is in token -2 to -1 of theLine then put quote after theResult
AT>    return theResult
AT> end StripComents

Thanks for that. It pretty much does the job for me, although I have
to handle C-style comments and line-continuation characters externally
before the tokenizer has a chance to work.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to