Is it possible to use a bnf and jflex file in a standalone environment without it being a intellij plugin?

Answered

I've written a .bnf and .flex file for my language to be used in the IntelliJ plugin. Now I am hoping to use these same files for the compiler for my language. The generated code seems to be very tightly related to the IntelliJ codebase. Ideally, I'd want something that could just go source text -> jflex lexer -> bnf parser -> ast. Is there any way of achieving this?

0
2 comments

Daniel, Grammar-Kit is an IntelliJ plugin, and it's designed to provide an output that will be used with the IntelliJ SDK and its PSI.

0

Please sign in to leave a comment.