Generic JSDoc-like comment parser.