> From: bill lam <[EMAIL PROTECTED]>
> 
> On Sat, 20 Sep 2008, Oleg Kobchenko wrote:
> > It's up to you. The method does the dirty work of parsing
> > C code and presenting in XML format which you translate
> > in a combination of XSLT and J processing. You make decisions
> > like that making the processing smarter. But it does not have
> > to be manual.
> 
> AFAICS the xml.xslt still needs extra ad-hoc (manual) modification or
> implementing a type inference engine (smarter).

No, not manual, the processing is always automatic
and precise without any guessing.
After an enhancement to the XSLT, as had been suggested,

  xml/xslt addon, test/swig_test.ijs example

here's the output:

   fread FLD,'swig_test.h'
typedef long L;
typedef L UL;
typedef L* PL;
struct var {
  int a1;
  L a2;
};
typedef struct var v;
typedef v* pv;

double defs(long *, L, UL,PL,UL*,PL*);
double structs(struct var *,v*,pv,pv*);

double mul(float argFloat1, float argFloat2);
int sub(int argInt3, int argInt4);
char* subs(char* argStr5, char** argPtrStr6, int argInt7);

   process toJ SWIG_XSLT xslt XML
defs d *l l l *l *l *
structs d *x *x *x *
mul d f f
sub i i i
subs *c *c * i


      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to