Giter Club home page Giter Club logo

cup-plugin's Introduction

cup-plugin

Cup file support plugin for IntelliJ IDEA

Features

  • Highlighting
  • Auto Completion for Symbols and keywords
  • Complete support of Java language in CUP files via language injection (option to disable) !
  • Terminal and Non Terminal references, usages and rename

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/tirke/cupPlugin/Cup.bnf file and generate the parser code
  7. Open src/tirke/cupPlugin/parser/CupLexer.flex file and generate lexer code
  8. The plugin should be ready to run now.

License: MIT

cup-plugin's People

Contributors

tirke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cup-plugin's Issues

Action Code for Cup is not Supported

When adding action code like ...Parsercode... {:RESULT = new WhileStatement(expression,statement):} the Plugin thinks it`s an error.
Idk if it is not implemented or just not supported in IntelliJ Ultimate 2022.1.

Import matching

Hi,

Im try import a library wich named es.uned.lsi.compiler.code, but I believe that produce a match with word "code" at the cup-plugin's flex. Are there any manner import it whit this name?

image

Regards

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.