Is there javascript lexer / tokenizer (in PHP)?

I saw a couple of Python Javascript tokens and a cryptic Mozilla.org document about Javascript Lexer, but can't find any Javascript tokens for PHP. Whether there is a?

thank

+3
source share
4 answers

I also have no experience, so I can’t tell you anything about what they do and in what detail they enter the code, but I see two:

  • JSLint is executable, but comes with a PHP interface - probably not enough for you, since it probably doesn't publish the raw tokenization of the calling program

  • PHPSniffer , Javascript, . .

+1

Javascript PHP5
http://j4p5.sourceforge.net/
( , IIRC .)

+1

JSMin + javascript PHP, JSTokenizer.

Narcissus Mozilla .

+1

jTokenizer/jParser. jTokenizer PHP. jParser , .

+1

Source: https://habr.com/ru/post/1761633/


All Articles