IntelliJ P4 language plugin
December 30, 2020 ยท View on GitHub
This plugin provides P4 language support by IntelliJ IDE
Features supported:
- Syntax highlighting
- Basic grammar check
- P4 module support
- P4 settings (Include paths setting)
Work in progress:
- Type check from include path
- Code completed
How to install:
Download jar from release and install manually or download from Intellij plugin repository.
How to configure
To set the p4-include-path, create a file name .p4plugin.cfg in your home directory with the following contents:
p4-include-path=<your custom P4 include path>
Development
Create idea project file
gradle idea
Debug the plugin with IDE
gradle runIde
Build the plugin
gradle buildPlugin [-PideaVersion=2019.3]
After build, you will get the plugin zip file in build/distributions/
Screenshot:

License:
Apache License