Tag Archives: exercise

Compiler Construction, WS0910

For those who joined the GForge project, your CVS repositories should be ready by now!

Check your GForge account, you should be member of your own project whose name ends with your initials. E.g. with my initials “JS”, my project would be called “Compilerbau WS09/10 (JS)”. This project would have a CVS called “cc09js”. To access it, create a CVS repository location in Eclipse, like this (but replacing my initials with your own, of course):

Bildschirmfoto 2009-10-21 um 15.46.20

After creating the location, you can use it to submit your homework.

Compiler Construction, WS0910

For clarification, here is a what you need to do to complete your first homework assignment:

  1. Write unit tests for
    • parsing single digits
    • interpreting an addition of those digits and computing the correct result
    • interpreting subtraction, multiplication, and division
    • correctly computing order of operations (“Punkt vor Strich”)
    • parsing parentheses and interpreting them recursively (hint: separate parsing of factors, terms, and expressions)
  2. Once your tests are in place (and you have a red bar), start to implement the functionality required for each test. Start with the simple tests and approach the complicated ones from there, just as it was shown in the lecture.
  3. A GUI for the interpreter is not required, but you may add one if you like.
  4. To submit your homework, join the GForge project (see my previous entry on this page). I will contact you once your CVS is ready. Commit your project to CVS from Eclipse using Team/Share project.

Feel free to ask me if you have any questions. If the CVS doesn’t work or you have problems using it, you can submit your homework via Email.

Compiler Construction, WS0910

The GForge project of the lecture is now online at https://gforge.cs.uni-kassel.de/projects/compilerbau09/.

Please create a GForge account (if you don’t already have one) and join the project as well as the discussion mailing list. Please note that this project is not intended for submissions of your homework. After you join the project, you will receive your own, separate GForge project and CVS repository to commit your homeworks to!

Please be patient, it may take a few days until your project is set up. Until then, you can submit the current homework to me via Email. Please export your Eclipse project as a ZIP file (using File/Export…/General/Archive File) and attach it to the mail. The deadline for homework submission is Friday before the lecture.