Giter Club home page Giter Club logo

part3's Introduction

CS132: Submission Requirements

All submissions to CS132 needs to be a single Tar file that follow a set of requirements:

  1. It MUST have your UID as name; example: 123456789.tar.

  2. It MUST contain ONLY and ALL the source code and used to compile your program:

    $ tar -vtf 123456789.tar
    <main-class>.java
    other/packages/Used.java
    other/packages/My.java
    

    Espessially it should not contain any of the files generated by javacc or jtb. The files are listed in the ./misc/illegalfiles file.

  3. Its contents MUST be able to build, and execute using the following sequence: $ mkdir -p /tmp/123456789 $ tar -xf 123456789.tar -C /tmp/123456789 $ (cd /tmp/123456789/ && javac .java) $ (cd /tmp/123456789/ && java )

  4. The content of the folder is tested using Java SE 1.8.0_101.

Notes for Windows Users: The commands described above should work on any of the UNIX SEAS machines that is available to you. If in doubt ask your TA.

Testing and feedback

To make everything easier for you we have created this automatic tester, packager, and pregrader. To use this helper tool, you can write your code in src/main/java, and any unit tests you want in src/test/java.

  1. First of download and install gradle.

  2. change MY_UID to your UID in gradle.properties, and the homework variable to the current homework.

  3. build, and unit-test the code using gradle build.

  4. your submission file is in build/distributions/<your-uid>.tar

You can run the code directly using the run task:

gradle run <testcases/hw1/test01

Finally to get a pregrade simply run gradle pregrade. The pregrader is the grader that we will use to grade you, but more test-cases will be added in the final grading.

NOTE: The current pregrade script uses bash, so you might have some problems using Windows.

JavaCC and JTB

Some of the excises will use JavaCC and JTB, to use them with the gradle script follow the instructions in src/parse/java/README.mkd.

part3's People

Contributors

bijiwei1 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.