Giter VIP home page Giter VIP logo

mps-kotlin-typesystem's Introduction

Type system for MPS kotlin

JetBrains team project Build status for 2023.2

This repository contains an implementation of the kotlin type system to be used with the kotlin language in MPS. The implementation relies on MPS coderules.

Several samples from kotlin documentation are also in the project (not in the plugin).

Installation

First, install both coderules and kotlin plugins, they can be either:

Then, you can toggle usage of coderules in MPS settings via Other Settings -> Typechecking (Enable typechecking with coderules and Watch model changes and collect updates are the minimal required for a proper edition experience).

Development

The project requires a version of MPS bundling kotlin (>= 2021.3) with the codesrules plugins to be opened.

Building the plugin

Manual building of the plugin can be done through gradle scripts with ./gradlew -b setup.gradle && ./gradlew assemble, several parameters may be configured in gradle.properties.

Through MPS, one need to set the coderules_home path variable or have coderules set up in "deps/coderules" (./gradlew -b setup.gradle installCoderules will download it there).

Extending the typesystem

The structure of the project gives a starting point to implement your types along with this typesystem implementation. You may also refer to this project for examples.

mps-kotlin-typesystem's People

Contributors

ashatalin avatar cdelabou avatar fisakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.