Reuse HCL parser from terraform plugin

Hi!

I’m not actually writing IntelliJ plugin yet, but I hope this is the right place to ask.

In my project I need to process Terraform files. Is there a way to reuse HCL parser from IntelliJ Terraform plugin?

A dependency to some Maven artifact would be ideal.

Thanks

Hi Michael,
I found some pointers on the old forum:

  1. Use Grammar-Kit parser standalone
  2. Create standalone parser from plugin-code
  3. Standalone Parser Dependencies