mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-08 20:28:13 +01:00
b5b0b0e595
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
20 lines
402 B
Text
20 lines
402 B
Text
How to use phply?
|
|
-----------------
|
|
|
|
For the lexer test execute in a shell:
|
|
|
|
$ phplex /path/to/file_name.php
|
|
|
|
For the parser test execute in a shell:
|
|
|
|
$ phpparse /path/to/file_name.php
|
|
|
|
For the JSON dump:
|
|
|
|
$ cd /usr/doc/phply-$VERSION/tools
|
|
$ python ./php2json.py < input.php > output.json
|
|
|
|
For the Jinja2 converter:
|
|
|
|
$ cd /usr/doc/phply-$VERSION/tools
|
|
$ python ./php2jinja.py <input.php > output.html
|