Make sure that all of the code that you submit can be compiled with a single
gradle build command in the root project directory — this means that the directory structure and the build scripts settings.gradle and build.gradle must be configured properly (see the explanations below or an example "skeleton" project archive here).
Update: You can now download a more complete example "skeleton" project here. Please note that it supports a simpler, different input language, and thus cannot be used verbatim as a submission (it will fail all the testcases and get 0 marks).
Please put your whole submission into a single directory that
has your candidate ID (i.e. a 6-digit string) as its name. This single directory (called a root project in Gradle) has sub-directories task1
and task2 (called subprojects in Gradle).
settings.gradle (this is a text file where task1 and task2 are specified as subprojects), and possibly
other files shared among tasks, into the root project directory.
In particular, you should put ANTLR's pre-compiled .jar file
(for now it is antlr-4.11.1-complete.jar) in the root project directory too.
build.gradle (where you may specify dependencies) into the corresponding subproject directory.
If you use a lexer generator to produce a lexer, or a parser generator to produce a parser, then please submit the inputs (e.g., grammar files) to the generator(s) too. There is no need to integrate generators into your Gradle build, however.
We will only run your code with Gradle. For example, to run your Task 2 we will use the command gradle :task2:run in the root project directory (run is defined in build.gradle in task2).
To ensure that the tests run properly, please do the following:
System.in.
System.out.
In particular, when we run your code, it should only output information required
by the task specification to System.out, with no redundant
messages such as those used for debugging.
Please try run-tests.sh in the example file
to get an idea on how your code will be tested.
Please do the following when submitting your code for evaluation.
rar for submission:rar files cannot be reliably extracted on OSX and Linux.
After you submit, please download your submitted file and check that the archive can be extracted.
234725.zip
or 439231.tar.gz. Also, to ensure anonymity, do not put your names anywhere in your
submissions.
The work submitted must be your own. You may discuss the designs of your programs with each other in broad outline, but discussions at the level of program statements — or other forms of collaboration on actual code — are unacceptable.
If you have not done so already, you would be well advised to consult the University of Sussex guidelines on the subjects of collusion and plagiarism: see here.