MCPcopy Index your code
hub / github.com/durkiewicz/elm-plugin

github.com/durkiewicz/elm-plugin @v0.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.2 ↗ · + Follow
172 symbols 312 edges 42 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

elm-plugin

Elm language plugin for IntelliJ IDEA.

Features

  • Parsing the syntax
  • Coloring keywords, comments, strings and numbers

This plugin is still at development phase. More features are coming soon.

Building from sources

  1. Setup your development environment according to this instruction.
  2. Clone this repository.
  3. Open it as a Plugin Project in IntelliJ IDEA (either Community or Ultimate version).
  4. Make sure you have Grammar-Kit and PsiViewer plugins installed.
  5. Delete the content of gen directory if you have previously generated parser code from another version of the BNF file.
  6. Open src/org/elmlang/intellijplugin/Elm.bnf file and generate the parser code (*)
  7. Open src/org/elmlang/intellijplugin/Elm.flex file and generate lexer code (*)
  8. The plugin should be ready to run now.

(*) either from a context menu or by keyboard shortcut ⇧⌘G

License: MIT

Extension points exported contracts — how you extend this code

Provider (Interface)
(no doc) [5 implementers]
src/org/elmlang/intellijplugin/features/completion/Provider.java
Function2 (Interface)
(no doc) [2 implementers]
src/org/elmlang/intellijplugin/utils/Function2.java
Callback (Interface)
(no doc) [2 implementers]
src/org/elmlang/intellijplugin/manualParsing/IndentationTokenTypeRemapper.java
ElmLowerCasePath (Interface)
(no doc) [1 implementers]
src/org/elmlang/intellijplugin/psi/ElmLowerCasePath.java
ElmFieldAccess (Interface)
(no doc) [1 implementers]
src/org/elmlang/intellijplugin/psi/ElmFieldAccess.java

Core symbols most depended-on inside this repo

parse
called by 6
src/org/elmlang/intellijplugin/manualParsing/PathParser.java
getGuardText
called by 4
src/org/elmlang/intellijplugin/manualParsing/PathParser.java
getIndentationOfPreviousToken
called by 3
src/org/elmlang/intellijplugin/manualParsing/IndentationHelper.java
parse
called by 3
src/org/elmlang/intellijplugin/manualParsing/CaseOfParser.java
map
called by 2
src/org/elmlang/intellijplugin/utils/ListUtils.java
fun
called by 2
src/org/elmlang/intellijplugin/utils/Function2.java
getIndentation
called by 2
src/org/elmlang/intellijplugin/manualParsing/IndentationHelper.java
use
called by 2
src/org/elmlang/intellijplugin/manualParsing/IndentationTokenTypeRemapper.java

Shape

Method 129
Class 34
Interface 9

Languages

Java100%

Modules by API surface

tests/org/elmlang/intellijplugin/LiteralParsingTest.java16 symbols
tests/org/elmlang/intellijplugin/ImportParsingTest.java11 symbols
tests/org/elmlang/intellijplugin/ModuleParsingTest.java10 symbols
src/org/elmlang/intellijplugin/ElmParserDefinition.java10 symbols
src/org/elmlang/intellijplugin/manualParsing/IndentationTokenTypeRemapper.java9 symbols
src/org/elmlang/intellijplugin/manualParsing/PathParser.java7 symbols
src/org/elmlang/intellijplugin/manualParsing/ElmParserUtil.java7 symbols
src/org/elmlang/intellijplugin/features/completion/ElmCompletionContributor.java7 symbols
src/org/elmlang/intellijplugin/utils/ListUtils.java6 symbols
src/org/elmlang/intellijplugin/manualParsing/CaseOfParser.java6 symbols
src/org/elmlang/intellijplugin/features/ElmCommenter.java6 symbols
src/org/elmlang/intellijplugin/ElmFileType.java6 symbols

For agents

$ claude mcp add elm-plugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact