PHP tokenizer in Python?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
Is there an analogue tokenizer'a from PHP , Python, or similar luxury to parse PHP code?
by | 8 views

1 Answer

0 like 0 dislike
Can I ask — why do you need it?
\r
PHP tokenizer uses its internal structure of the PHP interpreter and running fast, because written in C. But purely pitanja library will work much slower. Library for Python, written in C, to parse the PHP I think that will be very difficult to find something similar.
\r
Why not raise fcgi with php to do the parsing there and give the results to Python as JSON?
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,473 users