[phc-general] view source

vash cs vashrf at gmail.com
Tue Oct 26 19:00:15 IST 2010


hi,


> But Andrei is right, this isn't the right solution. What could work is
> making a phc plugin to do it. It would need to be a pretty
> straightforward translation, without looking too closely at the
> semantics (which I think is what you want). But this wouldn't be too
> hard to do.
Please expand. I don't completely understand this approach.


Also, what roles doesrose compiler  <http://rosecompiler.org/>  play in all of this?

thanks for information.

- Adam


On 10/26/10 3:25 AM, Paul Biggar wrote:
> On Mon, Oct 25, 2010 at 5:40 PM, Andrei Alvares<logytech at gmail.com>  wrote:
>>   It is indeed possible to convert the PHP program to C source with phc.
>>   You can try it yourself, as long as you compile phc with PHP embed
>> SAPI (http://www.phpcompiler.org/doc/latest/install.html):
>>   $ phc --generate-c file.php>  file.c
> If you do this, you can use the GNU indent program to make it readable.
>
> But Andrei is right, this isn't the right solution. What could work is
> making a phc plugin to do it. It would need to be a pretty
> straightforward translation, without looking too closely at the
> semantics (which I think is what you want). But this wouldn't be too
> hard to do.
>
> Paul
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nova.villiros.com/pipermail/phc-general/attachments/20101026/9b4cf841/attachment.html>


More information about the phc-general mailing list