chris-l / php-unparser

A JavaScript based code generator, to unparse glayzzle/php-parser compatible AST back to code.
https://chris-l.github.io/php-unparser/
33 stars 12 forks source link

Union with `prettier-php` #15

Open alexander-akait opened 6 years ago

alexander-akait commented 6 years ago

https://github.com/prettier/plugin-php :star:

chris-l commented 6 years ago

Hi, I'm not sure what this issue is about? You want to use php-unparser on your prettier plugin?

alexander-akait commented 6 years ago

@chris-l move best pretty practice in prettier-php :+1:

chris-l commented 6 years ago

I'm sorry, I'm not sure if I understand correctly. I'm guessing that by "pretty practice", you are referring to the pretty printer I created as demo. And you want to use that demo on your prettier-php repo. Is that correct?

By pretty printer demo, I mean this: https://chris-l.github.io/php-unparser/

Well, I'm only using glayzzle's php-parser and my php-unparser for that, so you can just import both php-parser and php-unparser to create a pretty printer.

alexander-akait commented 6 years ago

@chris-l yes, you have experience with some pretty output using php-parser (as link above), i am glad if you help us (prettier-php) to improve pretty print using you experience here.