Exiting C++ Parser at a certain comment line
0 posts in topic
Flat View  Flat View

Posted By:   Robert_Bruckbauer
Posted On:   Tuesday, April 2, 2002 12:19 AM

I want to parse a c++ implementation file with a number of methods. I like to distinguish between two types of methods, separated with a special comment line, e.g.

// <-- end of region of interest -->

Can I use the lexer to produce an eof when it reaches this special comment? How do I specify the eof condition in the lexer?

About | Sitemap | Contact