Thursday, March 2, 2006 11:10 AM
I have a simple task. I going to strip not usable brackets from expressions:
(((1+1))) => (1+1)
It's not hard, but there is one issue - single-line comments can appear inside expressions:
( -- this is simple (not hard) comment
And this is a problem. Same characters can appear inside brackets and inside comment. And I can't solve this issue in any way.
Can this case can be handled by ANTLR?