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.parentmodule and then chooseRun As>Maven install - Right click on
rls4eclipsemodule and then chooseRun As>Eclipse Application(for the first time after choosingRun Asthe optionEclipse Applicationmight not be there, so instead selectRun Configurations> double click onEclipse Applicationand then selectRun - A new eclipse window will appear but with the features of
rls4eclipseloaded and ready for testing
- From eclipse choose
file>Export> chooseDeployable featuresunderPlug-in Development - Select
rls4eclipse.featureunderAvailable Featuresand then pressOptions - Under
Categorize repositorypressBrowse - Choose the file
Category.xml - Select
Destinationand then chooseArchive filethen pressBrowseand 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
Rulewerkthen 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/rls4eclipseunder 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