On Mon, May 12, 2014 at 6:41 PM, Stephen Gutekanst
<
stephen....@gmail.com> wrote:
>
> I've got an implementation working right now. But I have another question if
> you have time: The SWIG docs say:
>>
>> C and C++ style comments may appear anywhere in interface files. In
>> previous versions of SWIG, comments were used to generate documentation
>> files. However, this feature is currently under repair and will reappear in
>> a later SWIG release.
>
>
> And I haven't looked at the C/C++ comment specification yet and don't know
> if there is trickery involved or if comments are just:
>>
>> // comment
>>
>> and
>>
>> /* multi-line-comment */
That is the comments syntax, yes.
> Would it be more appropriate to parse C/C++ comments (and multi-line ones)
> by specification and scan over that information for the magic #swig lines?
> Or we could restrict it to something along the lines of:
>>
>> #swig lines may only occur on lines in the top of the .swig and .swigcxx
>> files on single-line comments ("// #swig ...") preceded by only other
>> single-line comments.
I think that restriction is fine. Since the file is a SWIG file
anyhow, I would suggest using #go instead of #swig.
Ian