Can I handle this situation with ANTLR?
0 posts in topic
Flat View  Flat View

Posted By:   Alexander_Sinitsin
Posted On:   Thursday, March 2, 2006 11:10 AM

Hi All!

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?

About | Sitemap | Contact