1 / 15

Materi Pertemuan Ke-4

Materi Pertemuan Ke-4. Bahasa Perintah. Tujuan dasar perancangan bahasa. Presisi Kekompakan Kemudahan dalam penulisan dan pembacaan Mudah dipelajari Sederhana, mengurangi kesalahan Kemudahan mengingat. Kendala penggunaan bahasa. Kapasitas manusia mengingat notasi

Download Presentation

Materi Pertemuan Ke-4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MateriPertemuan Ke-4 BahasaPerintah

  2. Tujuan dasar perancangan bahasa • Presisi • Kekompakan • Kemudahan dalam penulisan dan pembacaan • Mudah dipelajari • Sederhana, mengurangi kesalahan • Kemudahan mengingat

  3. Kendala penggunaan bahasa • Kapasitas manusia mengingat notasi • Kecocokan antara ingatan dan media penampil • Kemudahan berbicara (mengucapkan)

  4. Strategi Organisasi Perintah • Simple command list • Setiapperintahdipilihuntukmelaksanakantugas (task) tunggal, danjumlahperintahsamadenganjumlahtugas • Untukjumlahtugas yang sedikit , dapatmenghasilkansistem yang mudahdipelajaridandipergunakan • Contoh : vi editor (UNIX)

  5. Go to home position H • Go to last line L • Go to middle line M • Previous line in the same CTRL-P column • Next line in the same column CTRL-N • Go to start of line 0 • Go to end of line $ • Go left one space h

  6. Command plus arguments • Setiap perintah diikuti satu atau lebih argumen • Contoh : • COPY FILEA , FILEB • DEL FILEA • PRINT FILEA, FILEB, FILEC

  7. Lanjutan… • Bagi beberapa pemakai, label keyword atau argumen dapat membantu. • Contoh : COPY FROM=FILEA TO=FILEB

  8. Command plus options and arguments • Perintahdapatmengandung option untukmenunjukkankeadaankhusus • Contoh: • PRINT/3, HQ, FILEA • A0821DCALGA0300p • Tingkat kesalahandankebutuhanakanpelatihanekstensifmeningkatdengan option yang banyak

  9. Hierarchical command structure • Perangkatpenuhperintahdiaturmenjadistruktur tree, sepertipada menu Action Object Destination CREATE File File DISPLAY Process Local Printer REMOVE Directory Screen COPY Remote Printer MOVE

  10. StrategiPenyingkatanNamaPerintah • Pemotongansederhana • Gunakanhurufpertama, kedua, ketiga, dst. Dari perintah, asalkanperintahdapatdibedakandenganhuruf-hurufawal • Contoh :directory  dir, delete  del.

  11. Buanghuruf-hurufhidupdenganpemotongansederhana • Buanghurufhidupdangunakanbeberapa yang tersisa • Jikahurufpertamahurufhidup, tidakbolehdibuang • Contoh :check disk  chkdsk, move  mv

  12. Lanjutan… • Hurufpertamadanhurufterakhir • Hurufpertamadanterakhirmudahterlihat • Contoh : sort  ST, block  BK. • Hurufpertamasetiap kata dalamfrase • Membuatakronim • Contoh : change directory: cd , switch user :su

  13. Lanjutan… • Singkatanstandardarikonteks lain • Gunakansingkatan yang sudahdikenal • Contoh: QUANTITY QTY, TRANSFER XFER, BACKUP BAK • Fonik • Fokuskanperhatianpadasuara • Contoh : execute XQT, I seek you ICQ, connection : CNXN

  14. Bahasa Alami di Dunia Komputer • Natural-language interaction • Operasikomputermenggunakanbahasaalamimanusia (mis. Inggris) untukmemberiinstruksidanmenerimarespons. • Natural-language queries • Operasipada database relasional. • Masihlebihburukdaripada SQL. • Contoh: INTELLECT, Symantec Q&A. • Text-database searching • Untukmencari database tekstual. • Contoh: Ask Jeeves (ask.com).

  15. Bahasa Alami di Dunia Komputer (Lanj.) • Natural-language text generation • Digunakanuntuklaporan (mis. Prakiraancuaca, laboratoriummedis). • Di sisiartistikdapatmenghasilkanpuisidan novel. • Adventure and educational games • Pemakaimenyatakangerakandanperintahdenganbahasaalami. • Menarikkarenasistemtakdapatdiramalkandanperludijelajahi.

More Related