From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-10-29T14:30:47+09:00 Subject: Re: NODE tree introspection In article , Phil Tomson wrote: >In article <868z0irxgw.fsf@squash.oucs.ox.ac.uk>, >Simon Cozens wrote: >>ptkwt@shell1.aracnet.com (Phil Tomson) writes: > >>Second, SWIG is particularly useful when you're trying to do cross-language >>library extensions. But we're only trying to export Ruby's AST to Ruby, so >>cross-langage concerns are irrelevant. > >Well, I guess I should put it differently: We could use SWIG to wrap >ruby.h and node.h and basically do what you're trying to do, but more >automatically. OK, I see the error of my ways - I just tried to wrap node.h with SWIG and yeah, that's not gonna work.... you end up wrapping stuff that obviously doesn't need to be wrapped (he says sheepishly:) Have you added any more code to your bytecode.c? > > >That brings up an interesting point: What if one were to wrap >Python with SWIG so that the Python interpreter was available from within >Ruby? > But this might still be a viable idea for someone who might want to evaluate Python code from within Ruby (or I suppose the same could be done with Perl or Tcl). Phil