This is an evaluator for SWELL. It is responsible for managing the program AST and provides a link between the parser and UI that helps manage ProDirect Manipulation.
Type make
in the terminal and hit enter. make
will, if necessary, install the npm modules, remove the compiled files, recompile, and generate documentation.
make clean
will remove all the compiled files, documentation, and npm modules. If you're having any sort of issues, run this and then make
.
If you're still having issues and you're using VSC, close VSC, make clean
, then make
.
If you're still having issues, Google.
make test
will compile and run all tests. Currently, two tests (both called A draw test should evaluate to an error) should evaluate to errors. All others should pass.
Note that module and UI tests must be written in the UI test folder. The UI can be tested manually or with Selenium Webdriver. To use the debugger, Webdriver is best... if you can get it to work.
How to Build a Module
checkGoal()
method in the module. checkGoal()
should be run when the Run button is pressed, but you may need to incorporate a delay, since for the Circle module it verifies it when the button is hit but before it actually paints anything.checkGoal()
is the bulk of the module, but you may want additional helper methods based on how complicated the goal is to check. CircleMod can provide a good reference for a basic goal check. Generated using TypeDoc