Custom language using IntelliJ as an IDE

Hi,

I just come from MPS forum with a question for you IntelliJ plugin gurus :-)
Say I have a textual language L and I want an IDE for this language.
Of course, I want IntelliJ but how can I add colour syntaxing, typing aids, ... all the power of IntelliJ for my custom language ?

I found this 2 links for Eclipse and Netbeans :
http://www.eclipse.org/Xtext/
http://wiki.netbeans.org/Schliemann

So, basically, Is there something like that for IntelliJ ?
MPS is not the answer since it doesn't take text file into account yet and I don't want to work with AST nodes : only text files.

Ideally, I would give my language's grammar as a configuration file and I'll get a powerful IntelliJ editor for my language.
But in real life, what do you advice me to look for ?

Thanks !

5 comments
Comment actions Permalink

Hello Jean-Baptiste,

Unfortunately developing a custom language plugin for IntelliJ IDEA involves
far more work than simply giving a grammar file. However, it's definitely
doable, and there are plenty of third-party custom language plugins for IntelliJ
IDEA.

Please see http://confluence.jetbrains.net/display/IDEADEV/DevelopingCustomLanguagePluginsforIntelliJIDEA
for information on how to develop a custom language plugin.

I just come from MPS forum with a question for you IntelliJ plugin
gurus :)

Say I have a textual language L and I want an IDE for this language.

Of course, I want IntelliJ but how can I add colour syntaxing, typing
aids, ... all the power of IntelliJ for my custom language ?

I found this 2 links for Eclipse and Netbeans :
http://www.eclipse.org/Xtext/
http://wiki.netbeans.org/Schliemann
So, basically, Is there something like that for IntelliJ ?

MPS is not the answer since it doesn't t     ke text file into account
yet and I don't want to work with AST nodes : only text files.

Ideally, I would give my language's grammar as a configuration file
and I'll get a powerful IntelliJ editor for my language.

But in real life, what do you advice me to look for ?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi,

Thanks for your answer but the link goes to a 404 equivalent :-)

0
Comment actions Permalink

Will this url be updated http://www.jetbrains.com/idea/plugins/developing_custom_language_plugins.html or is it now obsolete?  I have tried to use it as an example, but it is based on verion 5 and parts of the code no-longer compile.  Code releated to:

  • com.intellij.psi.scope.PsiScopeProcessor
  • com.intellij.openapi.editor.HighlighterColors
  • com.intellij.extapi.psi.PsiFileBase


Is there a better example that is included in the opensource version?

Michael

0
Comment actions Permalink

Hello Michael,

The post you're replying to contains an updated version of the same document.
We're moving all the plugin development documentation to Confluence, and
the documents at jetbrains.com are no longer updated. I guess we should remove
them and set up redirects.

Will this url be updated
http://www.jetbrains.com/idea/plugins/developing_custom_language_plugi
ns.html or is it now obsolete?  I have tried to use it as an example,
but it is based on verion 5 and parts of the code no-longer compile.
Code releated to:

  • com.intellij.psi.scope.PsiScopeProcessor

  • com.intellij.openapi.editor.HighlighterColors

  • com.intellij.extapi.psi.PsiFileBase


Is there a better example that is included in the opensource version?

Michael

---
Original message URL:
http://devnet.jetbrains.net/message/5271732#5271732

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.