how to parse VC++ CPP file and get all function name with argument name?
-
Hi i have one cpp file. i want Programmatically parse this cpp file. Then i got all function name with argument name from parsing cpp file output. please any idea? Regards, M.Mathivanan
-
Hi i have one cpp file. i want Programmatically parse this cpp file. Then i got all function name with argument name from parsing cpp file output. please any idea? Regards, M.Mathivanan
It's a bit (euphemism) tricky parsing a
C++
file. If you're lucky the source file you need to process use a small subset of theC++
language expressive power and then you may write down the parser without too much effort. Parsing tools like bison[^], ANTLR[^] or the lua LPeg library[^] may greatly help you in the development. Good luck. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]