Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 992 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 992 Bytes

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