I'm looking for a Python library for parsing code into its abstract syntax tree representation. There exists a built-in module, named ast
, however, it is only designed for parsing Python code, to my understanding. I'm wondering if there is a similar Python library that suits the same purpose, but works with other programming languages. In particular, I'm looking for one that can parse JavaScript code.
If one does not exist, any direction on how I could get started designing my own?