Code Monkey home page Code Monkey logo

antlr4-jetbrains-adapter's Introduction

ANTLR Parser Adapter for JetBrains IDEs

A library to support the use of ANTLR grammars for custom languages in jetbrains IDEs plug-in development.

This library has adaptors that convert ANTLR-generated parse trees into jetbrains PSI trees.

Usage

Instruction below is suitable for plugin that are using gradle build system.

Add repository to the build script - https://dl.bintray.com/antlr/maven/:

repositories {
    jcenter()
    mavenLocal()
    maven {
        url "https://dl.bintray.com/antlr/maven/"
    }
}

Add library as a dependency - org.antlr:antlr4-jetbrains-adapter:1.2.0:

dependencies {
    compile 'org.antlr:antlr4-runtime:4.5.1'
    compile ('org.antlr:antlr4-jetbrains-adapter:1.2.0') {
        exclude group: 'com.jetbrains'
    }
}

Plug-in that demonstrates the use of this library: protostuff/protobuf-jetbrains-plugin.

Build HOW-TO

Build:

./gradlew clean build

Deploy to bintray:

./gradlew bintrayUpload

Install to local maven repository:

./gradlew publishMainPublicationToMavenLocal

CI

Builds run automatically: https://jenkins.ksprojects.org/job/kshchepanovskyi/

Artifacts are uploaded to bintray:

https://bintray.com/antlr/maven/antlr4-jetbrains-adapter/

Version number computation logic:

if [[ "$BRANCH_NAME" =~ ^(release/).*$ ]]; then
  VERSION=$(cat release.txt).${BUILD_ID}
elif [[ "$BRANCH_NAME" =~ ^(master).*$ ]]; then
  VERSION=$(cat release.txt).alpha.${BUILD_ID}                                                              
else
  VERSION=$(cat release.txt).snapshot.$(git rev-parse HEAD)
fi

antlr4-jetbrains-adapter's People

Contributors

bjansen avatar kshchepanovskyi avatar parrt avatar vemilyus avatar yegorpetrov avatar

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.