Progress towards a working pydoc implementation.

- Nodes are now passed to the documentation translator so that type information can be looked up and used in parameter comments.
- Class comments are now inserted as well as some method information,


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Jamie Kirkpatrick 2008-09-12 11:17:39 +00:00
commit 0db7edfa63
11 changed files with 314 additions and 23 deletions

View file

@ -13,7 +13,7 @@
#define yylex yylex
char cvsroot_parser_y[] = "$Id$";
char cvsroot_parser_y[] = "$Id: parser.y 10767 2008-08-16 07:31:05Z cherylfoil $";
#include "swig.h"
#include "cparse.h"
@ -3209,15 +3209,18 @@ c_constructor_decl : storage_class type LPAREN parms RPAREN ctor_end {
doxygen_comment : DOXYGENSTRING
{
while(Strchr($1,'/') == Char($1))
Replace($1,"/","",DOH_REPLACE_FIRST);
if(isStructuralDoxygen($1)){
$$ = new_node("doxycomm");
Setattr($$,"DoxygenComment",$1);
}
else {
if(currentComment != 0){
Append(currentComment, $1);
Append(currentComment,$1);
}
else currentComment = $1;
else
currentComment = $1;
$$ = 0;
}
}