I'm building a project and I came across a problem. I should basically be able to parse JavaDoc-style (for example) comments. I know that there are already tools for parsing JavaDoc, but it was just an example. The format of my data would be something like:
// Function: Divide
//
// Divides two integers.
//
// Parameters:
//
// x - The first integer.
// y - The second integer.
//
// Returns:
//
// The two integers divided.
//
// See Also:
//
// <Multiply>
I should be able to set the keywords (Funciton, Parameters, Returns and etc). Also, the comment symbols may not always be // (** or ; are also possible). I know I should not try to parse this using regular expression, but with some kind of a grammar parser. My question is based on your experience, which one will be most suitable for my case?