in reply to Re^3: C/C++ function parsing
in thread C/C++ function parsing
Thanks for the feedback, I would incorporate it while posting questions.
The Code which I had posted is the partial code/sub routine code which is used, and the reason why the strict and warnings are missing.
Some things like autodie and FILE2, i would incorporate in my present code
In a single line the problem statement is:
"how do I parse the data which spans multiple lines."
More about about the question, I am writing a parser for c/c++ functions in the perl, which can detect the c/c++ functions which are spanning multiple lines, as in example
Function declared in multiple lines
NS_IMETHOD HandleEvent(nsPresContext* aPresContext, nsGUIEvent* aEvent, nsEventStatus* aEventStatus);
Function declared in Single Line
nsHTMLFramesetFrame::nsHTMLFramesetFrame(nsStyleContext* aContext)
The code I posted in my earlier post is able to parse the functions declared in a single line, but fails to detect the functions declared in multiple lines.
I need help in modifying the perl code to parse multiple line functions in a .cpp /.c file
|
|---|