Institute of Computer Science
  1. Courses
  2. 2019/20 spring
  3. Automata, Languages and Compilers (LTAT.03.006)
ET
Log in

Automata, Languages and Compilers 2019/20 spring

  • Üldinfo
  • Eksami näidised
  • Kava
    • 1. Soojendus
    • 2. Regulaaravaldised
    • 3. Olekumasinad
    • 4. Avaldise struktuur
    • 5. Grammatikad ja lekser
    • 6. Käsitsi parsimine
    • 7. ANTLRiga töötamine
    • 8. Interpretaator
    • 9. Kompilaator
  • Bitbucket
  • Moodle
  • Fleep!

1. kodutöö vihjed

Kui sa ei tea, kuidas pihta hakata, siis proovi nii:

  • Kirjuta programm, mis kuvab mingi konkreetse tekstifaili sisu ridahaaval ekraanile, st. faili nimi on programmi sisse kirjutatud. Testi oma programmi!
  • Täienda programmi nii, et kuvatakse ainult need read, mis pole tühjad. Testi oma programmi!
  • Täienda programmi nii, et ka kommentaarimärgiga algavad read jäetakse kuvamata. Testi oma programmi!
  • Ülejäänud ridade korral katsu aru saada, kas tegemist on omistuslausega või print lausega. Testi oma programmi!
  • ...
  • ...
  • Pane programm tööle (vähemalt) nendel juhtudel, kus lausetes ei ole tühikuid (või siis iga elemendi vahel on täpselt üks tühik, kuidas sulle endale lihtsam tundub). Testi oma programmi!
  • Muuda programmi nii, et see ei sõltuks tühikute olemasolust või puudumisest. Testi oma programmi!
  • Lõpuks muuda programmi nii, et faili nimi võetakse käsurealt. Testi oma programmi!
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment