fedesilva / jetbrains-plugin-sample

A sample plugin for jetbrains IDEs that uses an ANTLR grammar for a nontrivial custom language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Jetbrains plugin using ANTLR grammar

This is a demonstration of ANTLR-jetbrains supported library.

WARNING. Turn on Dragon speech recognition for Mac and do a rename. GUI deadlocks. Every time. Turn off dragon. No problem ever. See jetbrains forum.

Running the plugin for the first time

You need to fetch the antlr dependencies from the maven pom file with mvn dependency:resolve. To process the grammar files, call mvn process-resources.

Go to File -> Project Structure -> Project and add a new IntelliJ Platform Plugin SDK or use a valid existing one.

You also need the jetbrains antlr adapter. It may be imported as a git submodule with git submodule add git@github.com:antlr/jetbrains.git adaptor.

Now create a new Run Configuration of the type Plugin.

About

A sample plugin for jetbrains IDEs that uses an ANTLR grammar for a nontrivial custom language.

License:BSD 2-Clause "Simplified" License


Languages

Language:Java 93.3%Language:ANTLR 6.7%