Re: Parsing a comment

2002-11-21 Thread david
David Buddrige wrote: > Hi all, > > I am writing a program which will re-arrange a doc++ comment. > > A doc++ comment is a C/C++ comment that starts with an extra "*". An > example of a doc++ comment is this: > > /** >@doc Some general info about a function. >@precondition Any precondi

Re: Parsing a comment

2002-11-21 Thread David Buddrige
Please also note that I am passing a reference to an array of strings that contains the doc++ comment to this subroutine. Subsequently, I get the array of strings that is the doc++ comment into a single string which I then attempt to use pattern matching to extract the different components of

Parsing a comment

2002-11-21 Thread David Buddrige
Hi all, I am writing a program which will re-arrange a doc++ comment. A doc++ comment is a C/C++ comment that starts with an extra "*". An example of a doc++ comment is this: /** @doc Some general info about a function. @precondition Any precondition that the function has @postcondition