[phc-general] pretty php request
matthias at interexa.de
matthias at interexa.de
Thu Oct 11 13:14:52 CEST 2007
Hi Paul,
>> I was pretty amazed how your program beautified my php script, it
>> sent all the functions directly to the top and tabbed all the other
>> data pretty nicely.
>
> Our pretty printer was updated very nicely a while ago by Matthias
> Kleine. As you say, he did a great job.
thx for the flowers, but this is too much honor ;-). But it reminds
me that I have a list of problems resulting from a very large code
conversion with the pretty printer of phc.
I converted a code base of approximately 200.000 lines of PHP code
with PHC. We had no syntactical problems with the generated code,
which leads me to the conclusion that the generated AST is very
reliable. The converted code base is tested very intensively, so
that I can believe that any possible error resulting from the
conversion would have been found.
However, as I said, the code conversion was not completely without
problems. I made a list of these problems and wanted to post this
list to the phc team.
I will be out of my office for a few days, but I hope to make such
a list ready for posting at the end of next week.
By the way - there was a new template based mechanism planned for
the pretty printer, which was said to be much more flexible for
personal code conversion according to special guidelines. Has this
path been followed in the mean time? Are there any usable prototypes
of this template based mechanism?
Best regards
Matthias
More information about the phc-general
mailing list