Skip to content

datum-lang/intellij-datum

Repository files navigation

Intellij Plugin for Datum Lang

Build Version Downloads

todo:

  • Highlighter
  • fileType
  • lang.parserDefinition
  • lineMarkerProvider
    • default$main method
    • struct identify
  • completion.contributor
  • psi.referenceContributor
  • lang.refactoringSupport
  • lang.findUsagesProvider
    • goto declaration
  • lang.foldingBuilder
  • lang.psiStructureViewFactory
  • lang.formatter
  • codeStyleSettingsProvider
  • langCodeStyleSettingsProvider
  • lang.commenter

Documents

Setup

  1. ./gradlew build

Update DSL

  1. right click .bnf file and click
    • Generate Parser Code
    • Generate JFlex Code
  2. right click .flex file and click
    • Run JFlex Generator

Examples

see more in Datum Demo

pkg examples


import fmt

default$main() {
    fmt.println("hello,world")
}

struct Summary {
  	Name   : string
	FanIn  : int
	FanOut : int
}

struct Hello {
    summary : Summary
}

The languages plugins for Charj language. It can highlight code, generate stucture, and others.