A java Xtext plugin for the rule language of Rulewerk. For further information regarding the syntax of rulewerk and some of its examples see Rule-syntax-grammar and Rule-syntax-by-examples
For Development make sure that Xtext 2.20 is installed from eclipse's marketplace before following these steps.
- From eclipse, select
file
>import
>Maven
>existing maven projects
, then select the directory of the clonned folder and press ok. Make sure that all the projects are selected before pressing finish - Right click on
rls4eclipse.parent
module and then chooseRun As
>Maven install
- Right click on
rls4eclipse
module and then chooseRun As
>Eclipse Application
(for the first time after choosingRun As
the optionEclipse Application
might not be there, so instead selectRun Configurations
> double click onEclipse Application
and then selectRun
- A new eclipse window will appear but with the features of
rls4eclipse
loaded and ready for testing
- From eclipse choose
file
>Export
> chooseDeployable features
underPlug-in Development
- Select
rls4eclipse.feature
underAvailable Features
and then pressOptions
- Under
Categorize repository
pressBrowse
- Choose the file
Category.xml
- Select
Destination
and then chooseArchive file
then pressBrowse
and select the desired destination and file name for the feature - Select
Finish
- From eclipse choose
Help
>Install new Software
- Select
Add
> copy the urlhttps://knowsys.github.io/rulewerk-eclipse/
to the location box > pressAdd
- Select
Rulewerk
then press next, finalize and accept all conditions - Choose
Install anyway
- Select
Restart now
- Syntax Highlighting
- Auto-completion
- Validations
- Labeling
- Rename Refactoring
- Direct creation of Rulewerk files
- The grammar file is found in
rls4eclipse/src/rls4eclipse
under the name ofRLS.xtext
, you can edit the grammar in this file and then run the file as Generate Xtext Artifacts before running the application to apply the grammar changes - For more information regarding implementing a certain feature in xtext and the importance of each module in the project, see Xtext Documentation