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
gen
directory if you have previously generated parser code from another version of the BNF file. - Open
src/tirke/cupPlugin/Cup.bnf
file and generate the parser code - Open
src/tirke/cupPlugin/parser/CupLexer.flex
file and generate lexer code - The plugin should be ready to run now.