Cup file support plugin for IntelliJ IDEA
- 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
- Setup your development environment according to this instruction.
- Clone this repository.
- Open it as a Plugin Project in IntelliJ IDEA (either Community or Ultimate version).
- Make sure you have Grammar-Kit and PsiViewer plugins installed.
- Delete the content of
gendirectory if you have previously generated parser code from another version of the BNF file. - Open
src/tirke/cupPlugin/Cup.bnffile and generate the parser code - Open
src/tirke/cupPlugin/parser/CupLexer.flexfile and generate lexer code - The plugin should be ready to run now.