项目作者: Bradan
项目描述 :
An IntelliJ PureBasic Plugin
高级语言: Java
项目地址: git://github.com/Bradan/intellij-purebasic.git
intellij-purebasic
PureBasic and SpiderBasic language support for IntelliJ IDEA and IDEA based IDEs.
Known to work with
- PureBasic 5.72 (Linux - x64)
- SpiderBasic 2.10 (Linux - x64)
Usage instructions
- Install this plugin and a PureBasic or SpiderBasic compiler.
- Go to
File | Settings | Build, Execution, Deployment | Build Tools | PureBasic and set up your SDK paths.
Add a label to them (for example PureBasic 5.72 can be labelled as “pb572”). - Create a project with a PureBasic module.
- Create some PureBasic or SpiderBasic sources files (Module context menu | New | New PureBasic File).
- Open the module settings and create a build target. Name it, specify the main source file and the output
filename as well as a SDK label. - Create a PureBasic run configuration which is linked to this module and build target. (PureBasic only)
- Compile the project and run it.
The current version is still very limited (and there are probably bugs), hence it is only available in the alpha
channel.
External links: Source code
Compile Instructions
Gradle tasks to execute (in separate gradle calls, because a subtask named compileJava must be executed multiple times):
- generatePureBasicParser:
generate lexer/parser files with JFlex and GrammarKit - assemble:
compile everything, create separate jars - createFatJar:
creates the final fat jar which also contains the jps plugin.
The first compile is necessary because GrammarKit attaches methods to
the expression tree nodes, which cannot be found if there are no precompiled
class files.
Unfortunately, gradle has no ability to execute a task twice, hence you have
to do it manually.