I use an ANTLRv4 grammar to parse my DSL. I would like to create a plugin to support code highlighting and code completion in IntelliJ IDEA for my DSL.
As far as I can tell, IntelliJ uses BNF and Flex formats for parsing.
Is it possible to:
use an ANTLR grammar, or
convert an ANTLR grammar to BNF and Flex ...
... to make an IntelliJ plugin for my DSL?
Updated on 2020-Dec-22
Question #1: Is it possible to directly use an ANTLR grammar to generate a JetBrains plugin for language support?
Yes, to some degree. It looks like the antlr4-intellij-adaptor library will help. I don't have firsthand experience. It describes itself as "A library to support the use of ANTLRv4 grammars for custom languages in IntelliJ-based IDEs plug-in development."
Just for clarification, a different tool, the ANTLRv4 Plugin for IntelliJ is designed to aid in the development of ANTLRv4 grammars. It does not support using an ANTLRv4 grammar to generate a lexer and parser for use by the JetBrains editors (e.g CLion, GoLand, IntelliJ, PyCharm, RubyMine, and so on).
Question #2: Is it possible to convert an ANTLR grammar to some other forms (e.g. BNF and Flex) which can be used to generate a JetBrains plugin for language support?
Yes, but this is a large topic. I would direct you to this Stack Overflow post: Are there tools to convert between ANTLR and other forms of BNF?
Related Tooling: You may find Grammar Kit by Jetbrains useful, it is "An IntelliJ IDEA plugin for language plugin developers."
Recommended Docs: Also, JetBrains provides extensive documentation on how to extend language support for its editors.
Related
I want to use Kotlin with the Spring Tools suite plugin for VSCode but it only supports Java (For things like intellisense).
I know I should just use intelliJ and I will for now but I program in a lot of different languages daily and I would like to do all of this from the same tool.
The Spring Tools 4 extension for VSCode does not support Kotlin yet (for the Spring specific tooling). Feel free to comment on https://github.com/spring-projects/sts4/issues/163
Trying to start multilingual project where Java, C & C++ will be used mixed.
With NetBeans I could have all the necessary plugins at ones. Trying to figure out how and which JetBrains tools I could use.
Any help will be gratefully appreciated.
P.S. I am having a license for the full stack of JetBrains tools.
You'll be using Jetbrains IntelliJ and CLion side by side since they are more specialize in that languages.
Also you can use IntelliJ alone and use some plugins todo works on other language.
As of now, I'm doing both frontend(Vuejs) and backend(Django) on a daily basis, and I use both Webstorm and PyCharm in this type of development.
I am looking for a plugin to use in IntelliJ to edit visually a .bpmn file. I installed the JBoss jBPM plugin, but it doesn't associate or open up a *.bpmn2 file. Can someone suggest if this supported in IntelliJ or another plugin is available to visually edit a .bpmn2 file?
JBoss JBPM plugin is an old plugin that covers Jboss proprietary jPDL notation but doesn't cover BPMN. There is also ActiBPM plugin ((https://plugins.jetbrains.com/plugin/7429?pr=), but it seems to be dead. Unfortunately there is no better tool for IntelliJ, so you probably remain stuck with your current tools (I'm stuck with Eclipse + Camunda plugin).
Unfortunately, most BPMN 2.0 engines I've seen use slightly different dialects. It means that the file structure is the same. But the details, like executed Java class reference, are provided in a slightly different way, for example by using custom XML namespace that is relevant to the concrete BPMN engine.
I've created a plugin for Flowable BPMN and IntelliJ with navigation-to-code-support:
https://plugins.jetbrains.com/plugin/14318-flowable-bpmn-visualizer
And sources are here:
https://github.com/valb3r/flowable-bpmn-intellij-plugin
What I suggest is community participation in expanding this plugin or forking it to support i.e. JBPMN BPMN 2.0 dialect, as all we need to change is XML Parser, and all other parts of the plugin can remain as is
Is there any Expressionengine code highlighter plugin for Aptana? I've read that most of Eclipse plugins are compatible with it, so theres might be an Eclipse plugin which works with it...
There are ExpressionEngine "bundles" for many popular Mac editors — including Coda, Espresso and Textmate — often referred to colloquially as the "ExpressionEngine Developer's Toolkit".
There's also been a lot of demand for an ExpressionEngine Language Module and Clippings Set for BBEdit as well.
However, I'm not aware of anyone who has built an ExpressionEngine code highlighter for Aptana.
Does anyone know of free tools, IDEs or plugins (preferably for Netbeans or Eclipse) that can generate dependency trees like NDepend for Visual Studio? I am looking for one that does it for PHP, but ideally it would support multiple languages.
I believe that doxygen can be coaxed into doing something similar.
Here is is: GENERATE_TREEVIEW.