PHP embedded in D.
Bill Baxter
dnewsgroup at billbaxter.com
Tue Jul 3 19:32:20 PDT 2007
Kirk McDonald wrote:
> Joshua wrote:
>> Anders Bergh Wrote:
>>> You can convert the PHP headers to D modules manually or using a tool
>>> such as htod or bcd.gen, and use the PHP API directly in D.
>>
>> Hate to sound so newbish but is there a tutorial on how to do that? I
>> think I understand what you are saying but I have not tried it with
>> anything like PHP before.
>
> Yes, there is a basic tutorial here:
> http://digitalmars.com/d/htomodule.html
>
> Tools like htod and bcd.gen (the latter is newer and probably better)
> automate much of the process. You'll still have to go through the
> generated modules by hand, but they'll do much of the grunt work.
bcd is more likely to work because it uses a complete compiler front-end
(gcc-xml) to parse the source.
If you go for BCD and you're on Windows, don't overlook this precompiled
version here:
http://dsource.org/projects/bcd/browser/downloads
(Didn't used to be linked from the BCD page ... maybe it is now)
I never got around to trying BCD, though, so don't ask me for a
tutorial. But if you do get it working you should definitely write a
tutorial so I can read it. :-)
--bb
More information about the Digitalmars-d
mailing list