# Java Automatic Feedback Rascal implementation of a simple rule checker for student Java assignments. ## How to run 1. Download the latest rascal-shell-unstable.jar from the rascal website and put it next to the run.sh script http://update.rascal-mpl.org/console/rascal-shell-unstable.jar 1. Run the script $ ./run.sh For example $ ./run.sh 02 /home/mkl/radboud/teaching/object-orientation/oo-grading-2019/assignment02/thout/70827-16116\ -\ Asgn\ CS\ Group\ 125\ -\ Jordy\ Schoolmeesters\ -\ Feb\ 10\,\ 2019\ 22_55/ Version: 0.13.0-SNAPSHOT error("All I/O should happen in the view class",|java+class:///a2/Gallows|) error("Always explicitly specify access modifiers: public, protected, or private",|java+field:///a2/User/input|) ## Running the test cases There are some test projects and test cases to check that the rules give correct error messages. To run the tests, use the test script. The test script looks for all files `*Spec.rsc` and executes them $ ./test.sh To run only specific files, specify them on the command line. $ ./test.sh Assignment02RulesSpec.rsc Assignment03RulesSpec.rsc ## References - Rascal official website https://www.rascal-mpl.org/ - Rascal github https://github.com/usethesource/rascal - Rascal documentation http://tutor.rascal-mpl.org/Rascal/Rascal.html