Re: Converting C to Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

Unlikely*. The closest thing I've got is p2js, which translates Phix to JavaScript**, and (at least theoretically) vice-versa, and (at least theoretically) that could be extended to do [some of the gruntwork of] C to phix, but it would no doubt end up rather buggy and be both quicker and easier and just better to do it as a one-off by hand, which I could if you wanted to pay for it! Any specific reason why you don't want to just use the C-generated binary as-is?

* An automated tool that deals correctly with 0-based indices to 1-based would be tricky enough, mapping char* to string might be reasonably straightforward but any other C pointers would be another huge ball of mud.
** As in JavaScript that uses 1-based indices, and without any direct use of pointers.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu