How to implement support for my language using a plugin?

Answered

I wrote my interpreted language in Java, but here's the problem, I can't make a plugin to support my language. My language is very similar to Java and C# (Object-oriented, strongly typed). I have a Lexer, I have a Parser (I even made a PsiListener for the AST generator). But Intellij IDEA has its own lexer and parser system. How can I combine them?

I couldn't combine my PsiListener with Intellij's PSI system because my parser and lexer require the entire code at once, but Intellij doesn't provide it.

So how can I combine the lexer and parser of my language with the plugin for Intellij?

 

https://github.com/ReStudios-Dev/ReLang

0
1 comment

It is not possible to “run” your lexer/parser (easily) within IntelliJ Platform, at least I'm not aware of any custom language plugin actually  wrapping such a generic code into IJ Platform.

0

Please sign in to leave a comment.