Getting the syntax tree or ast

Hi,

I am new to codemirror. I have been able to integrate codemirror with syntax highlighting for javascript. However, I am very confused about how to get hold of the AST or traverse through syntax tree for the content typed in the editor. Any code example to help me understand this?

Thanks

Never mind. I figured it out.I just had to import syntaxtree. :slight_smile:

Hi, can you please share your solution for this?
I’ve encountered the exact same problem.