Is there a tokenizer for a cpp file
        Posted  
        
            by AJ
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by AJ
        
        
        
        Published on 2010-04-19T09:06:43Z
        Indexed on 
            2010/04/19
            9:53 UTC
        
        
        Read the original article
        Hit count: 406
        
I have a cpp file with a huge class implementation. Now I have to modify the source file itself.
For this, is there a library/api/tool that will tokenize this file for me and give me one token each time i request.
My requirement is as below.
OpenCPPFile()
While (!EOF)
   token = GetNextToken();
   process something based on this token
EndWhile
I am happy now
Regards, AJ
© Stack Overflow or respective owner