PHP tokenizer in Python?

0 like 0 dislike
4 views
Is there an analogue tokenizer'a from PHP , Python, or similar luxury to parse PHP code?
by | 4 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,186 answers
0 comments
28,875 users