Alex Rivera | Logout

Access the Abstract Syntax Tree of V8 Engine

Asked 2012-02-26T06:24:02.627
11

Is it possible to access the AST of the v8 engine, for a given JavaScript code? I'm working on a JavaScript Static Analyzer using V8 engine.

Edit
Report

1 Answer

1

Well, I don't know what you want to achieve, but it sounds like you want to modify the AST from inside your C++ code (or maybe write wrapper classes for the JavaScript context for them as well?).

I suggest to take a look at the headers file which pretty explains what's there to be used on V8's AST:

https://chromium.googlesource.com/v8/v8/+/main/src/ast/ast.h

~Cheers

answered 2012-07-23T08:45:39.590

Your Answer