Coursework submission guidelines

Important!

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).

Structuring your source files

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).

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.

Making your programs accessible

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:

Please try run-tests.sh in the example file to get an idea on how your code will be tested.

Submitting your code

Please do the following when submitting your code for evaluation.

Originality and plagiarism

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.