No, the AST printing is intended to be debug printing for V8 developers and doesn't have any stability guarantees on the format or functionality. You may want to use a JS-native JS parser, e.g. acorn (https://github.com/acornjs/acorn).
- Leszek On Monday, December 9, 2024 at 11:09:46 PM UTC+1 pgs...@gmail.com wrote: d8 --print-ast produces AST in tree format. Is there a way to get it as JSON either natively or with an external tool? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/v8-users/6326664f-f908-404b-a884-999e05d0f98en%40googlegroups.com.