I’ve seen a couple of Python Javascript tokenizers and a cryptic document on Mozilla.org about a Javascript Lexer but can’t find any Javascript tokenizers for PHP specifically. Are there any?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have no experience with either, so I can’t tell you anything about what they do and in what detail they tokenize code into, but I can see two:
JSLint is an executable but comes with a PHP interface – probably not enough for you, as it probably doesn’t publish the raw tokenization to the calling program
PHPSniffer claims to come with a full Javascript tokenizer that you can maybe tap into. This looks the most interesting.