Coder Social home page Coder Social logo

imurluck / intellij-javacc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oowekyala/intellij-javacc

0.0 1.0 0.0 3.21 MB

JavaCC and JJTree grammar support for the IntelliJ Platform

Home Page: https://plugins.jetbrains.com/plugin/11431-javacc

License: MIT License

Lex 1.59% Kotlin 96.28% HTML 1.84% Shell 0.29%

intellij-javacc's Introduction

JetBrains IntelliJ Plugins

JavaCC and JJTree plugin for IntelliJ IDEA

Offers comprehensive language support for the JavaCC parser generator. Doesn't generate parsers itself yet though. Code insight works best when the token manager and other supporting files have already been generated.

Demo GIF

Features

JavaCC code insight
  • Jump to declaration of productions and tokens
  • Comprehensive structure view
  • Quick documentation for productions and tokens
  • Useful code folding to hide what gets in the way
  • Detection of all JavaCC errors as you type
JJTree code insight
  • Link JJTree node descriptors to their corresponding node class, and vice-versa
  • Highlighting of the node scope of a node annotation
  • Jump to partial declarations when they exist
  • Additional structure view information
Java language injection
  • Java is injected in the code fragments embedded in grammars, like parser actions
  • Code completion, quick documentation, usage resolution, and many other Java IDE features are available on the most basic level of injection
  • Compilation error checking (including type checking) and rich syntax highlighting can optionally be enabled in the plugin settings
  • Control flow analysis of the embedded Java file respects the structure of the grammar, so that control-flow related inspections work properly

To change the injection level (or disable injection), go to Settings | Languages & Frameworks | JavaCC.

Inspections and intention actions

Including unnecessary parentheses detection, unreachable production detection, ambiguous JJTree node descriptor, etc. Many JavaCC warnings are also implemented as inspections. Inspections can be suppressed since version 1.0.

Usage notes

  • I recommend to define an easy shortcut to fold/unfold region from the start if you don't have any
  • Code insight in Java fragments works best when the token manager and other supporting files have already been generated.
  • Please report issues if you encounter any. The Java injection support in particular is still quite fragile. Contributions are most welcome as well!

intellij-javacc's People

Contributors

oowekyala avatar

Watchers

 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.