Da bis jetzt erst 37 Anmeldungen eingegangen sind werden wir die Einteilung der Gruppen auf Donnerstag, den 22. Okt, 12h mittags verschieben. Nach dem Mittagessen seid ihr dann einer Gruppe zugeteilt.
All posts by Albert Zündorf
A student has asked me how repository folders should be named to avoid confusion. I suggest the following:
- Call the Eclipse project exactly as the CVS module name, e.g. “compilerbau” or something similarly short, no blanks please
- Create a normal Java project with a src and a bin folder!
- Inside the source folder, put your homework in a Java package, e.g. “de.uniks.compilerbau.homework01” for your first homework
Remember, this is only a suggestion, but you should really use Java packages. If you haven’t, you can use Eclipse’s refactoring tools to move your code into a package.
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):
After creating the location, you can use it to submit your homework.
Damit ihr euch am Freitag für die erste Übung mit euren Tutoren treffen könnt beantragt die Mitgliedschaft im Projekt se1ws0910 auf unserem GForge bis Mittwoch, den 21. Okt 2009 , 24h. Falls ihr noch keinen Account habt legt einen an.
Wir werden Donnerstag die Teilnehmer in Achtergruppen einteilen und den Tutoren zuteilen. Diese werden sich dann am Freitag das erste mal treffen. Die genaue Uhrzeit macht ihr mit den Tutoren aus.
For clarification, here is a what you need to do to complete your first homework assignment:
- 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)
- 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.
- A GUI for the interpreter is not required, but you may add one if you like.
- 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.
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.
Here you can find the material for used in the first exercise.
Follow the steps you find in the slides to get your working environment up and running.
I have one power point file of slides for the whole course. However, I will modify this file each week with hand writing etc.
Thus, each week after the lecture I will publish a new version of the file.
Find the current version below.
Find the example model for Engineering C here.