aboutsummaryrefslogtreecommitdiff
path: root/python/phply/README.Slackware
blob: d2b5afec72124a65f558be730749a3dcbe5f2132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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