What tools exist for parsing Javascript and reading results in Javascript or Ruby?

I would like to do Javascript code analysis. I would rather work for AST or S-Expression s. Of course, it is possible that the V8 engine is building this, although I cannot find any documentation on how to access this information from the Javascript context.

I would be very happy to do my analysis in Ruby, although the only way I can think of is to write a complete grammar in Treetop or a similar parser.

+3
source share
3 answers
+3
source

If you want to use Ruby, you do not need to implement it yourself, because Aaron Patterson from nokogiri has already made fame in rkelly .

+4
source

DMS Software Reengineering Toolkit ECMAScript ( HTML script ONxxx attrbutes) . , ; . , . AST XML, , DMS , , , ​​ .

DMS .

+2
source

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


All Articles