Can I do code highlighting using already existing tools that can be compiled into ast

I want to write an online visualization website for jmespath, but lezer is very strange to me. Although the official website provides syntax, the migration work is also very large. The official website provides ready-made tools to compile into ast, and I did not find relevant documents in codemirror for integration. How can I solve this problem?

Screenshots of my website

jmespath grammer
https://jmespath.org/specification.html