Awesome
Motoko plugin for IntelliJ IDEA
Adds support for the Motoko language from Dfinity.
IDE Dev Setup
- Install Grammar-Kit from Jetbrains
- Right click
src/main/java/net/lab0/motoko/Motoko.bnf
and clickGenerate Parser Code
- Right click
src/main/java/net/lab0/motoko/Motoko.flex
and clickRun JFlex Generator
, select thesrc/main/gen
folder and clickOk
. - Mark
src/main/gen
as Generated Sources Root - Compile with
./gradlew buildPlugin
- Start IJ with
./gradlew runIde
- Open
motoko_samples
as a project folder.
Basic parsing and syntax coloring is now available.
Status
Toy project. Abandoned. Using the Motoko LSP is a better option.
VS code has an extension for this.
Features
Parses almost all the Motoko grammar from early 2021.
Motoko is the language used by the Internet Computer, a crypto decentralized datacenter project.