Visual Prolog: Perbedaan antara revisi
Rescuing 2 sources and tagging 0 as dead.) #IABot (v2.0.8 |
Rescuing 5 sources and tagging 0 as dead.) #IABot (v2.0.9.4 |
||
(3 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 13: | Baris 13: | ||
Berikut ini merupakan contoh program [[Menara Hanoi]] yang diimplementasikan menggunakan bahasa pemrograman prolog. |
Berikut ini merupakan contoh program [[Menara Hanoi]] yang diimplementasikan menggunakan bahasa pemrograman prolog. |
||
< |
<syntaxhighlight lang="VisualProlog">class hanoi |
||
predicates |
predicates |
||
hanoi: (unsigned N). |
hanoi: (unsigned N). |
||
Baris 37: | Baris 37: | ||
goal |
goal |
||
console::init(), |
console::init(), |
||
hanoi::hanoi(4).</ |
hanoi::hanoi(4).</syntaxhighlight> |
||
== Bacaan lanjutan == |
== Bacaan lanjutan == |
||
* {{en}} Thomas W. de Boer, [http://wiki.visual-prolog.com/index.php?title=A_Beginners'_Guide_to_Visual_Prolog A Beginners Guide to Visual Prolog] {{Webarchive|url=https://web.archive.org/web/20111225175251/http://wiki.visual-prolog.com/index.php?title=A_Beginners%27_Guide_to_Visual_Prolog |date=2011-12-25 }} (English, Chinese) |
* {{en}} Thomas W. de Boer, [http://wiki.visual-prolog.com/index.php?title=A_Beginners'_Guide_to_Visual_Prolog A Beginners Guide to Visual Prolog] {{Webarchive|url=https://web.archive.org/web/20111225175251/http://wiki.visual-prolog.com/index.php?title=A_Beginners%27_Guide_to_Visual_Prolog |date=2011-12-25 }} (English, Chinese) |
||
* {{en}} Eduardo Costa, [http://wiki.visual-prolog.com/index.php?title=Visual_Prolog_for_Tyros Visual Prolog for Tyros] |
* {{en}} Eduardo Costa, [http://wiki.visual-prolog.com/index.php?title=Visual_Prolog_for_Tyros Visual Prolog for Tyros] {{Webarchive|url=https://web.archive.org/web/20110717224808/http://wiki.visual-prolog.com/index.php?title=Visual_Prolog_for_Tyros |date=2011-07-17 }} |
||
** {{en}} [http://download.pdc.dk/vip/71/Costas-Tyros_rus.pdf Russian translation] {{Webarchive|url=https://web.archive.org/web/20110719130448/http://download.pdc.dk/vip/71/Costas-Tyros_rus.pdf |date=2011-07-19 }} 210 pages (pdf) |
** {{en}} [http://download.pdc.dk/vip/71/Costas-Tyros_rus.pdf Russian translation] {{Webarchive|url=https://web.archive.org/web/20110719130448/http://download.pdc.dk/vip/71/Costas-Tyros_rus.pdf |date=2011-07-19 }} 210 pages (pdf) |
||
* {{en}} Giovanni Torrero, [http://digidownload.libero.it/giotorrero/informatica/VisualProlog.pdf VISUAL PROLOG PER PRINCIPIANTI] ''Italian'' 113 pages (pdf) |
* {{en}} Giovanni Torrero, [http://digidownload.libero.it/giotorrero/informatica/VisualProlog.pdf VISUAL PROLOG PER PRINCIPIANTI] ''Italian'' 113 pages (pdf) |
||
Baris 54: | Baris 54: | ||
== Pranala luar == |
== Pranala luar == |
||
* {{en}} [http://www.visual-prolog.com/ Visual Prolog Home Page] |
* {{en}} [http://www.visual-prolog.com/ Visual Prolog Home Page] {{Webarchive|url=https://web.archive.org/web/20220413105119/http://www.visual-prolog.com/ |date=2022-04-13 }} |
||
** {{en}} [http://wiki.visual-prolog.com/index.php?title=Language_Reference Language Reference] |
** {{en}} [http://wiki.visual-prolog.com/index.php?title=Language_Reference Language Reference] {{Webarchive|url=https://web.archive.org/web/20110717224242/http://wiki.visual-prolog.com/index.php?title=Language_Reference |date=2011-07-17 }} |
||
** {{en}} [http://wiki.visual-prolog.com/index.php?title=Category:Tutorials Tutorials] |
** {{en}} [http://wiki.visual-prolog.com/index.php?title=Category:Tutorials Tutorials] {{Webarchive|url=https://web.archive.org/web/20110717224314/http://wiki.visual-prolog.com/index.php?title=Category:Tutorials |date=2011-07-17 }} |
||
** {{en}} [http://wiki.visual-prolog.com/ wiki] |
** {{en}} [http://wiki.visual-prolog.com/ wiki] {{Webarchive|url=https://web.archive.org/web/20080516052843/http://wiki.visual-prolog.com/ |date=2008-05-16 }} |
||
** {{en}} [http://discuss.visual-prolog.com/ discussion forum] |
** {{en}} [http://discuss.visual-prolog.com/ discussion forum] {{Webarchive|url=https://web.archive.org/web/20110717224207/http://discuss.visual-prolog.com/ |date=2011-07-17 }} |
||
* {{en}} [http://www.pdc.dk/ Prolog Development Center] |
* {{en}} [http://www.pdc.dk/ Prolog Development Center] |
||
{{Authority control}} |
|||
[[Kategori:Bahasa pemrograman]] |
[[Kategori:Bahasa pemrograman]] |
Revisi terkini sejak 29 Mei 2023 04.21
Visual Prolog sebelumnya dikenal sebagai PDC Prolog dan Turbo Prolog merupakan bahasa pemrograman prolog yang berorientasi objek. Sebelumnya, Turbo Prolog dipasarkan oleh Borland, tetapi saat ini produk tersebut dikembangkan serta dipasarkan oleh perusahaan asal Denmark, Prolog Development Center, yang sejatinya merupakan perusahaan yang mengembangkan Turbo Prolog. Visual Prolog dapat digunakan untuk membuat aplikasi berbasis grafis untuk sistem operasi Microsoft Windows, aplikasi konsol, berkas pustaka .dll, dan program berbasis CGCI. Copyright C Erlando OS. All rights reserved. Windows, dan akses database melalui ODBC. Visual Prolog merupakan bahasa pemrograman yang dikompilasi, dan bukan diinterpretasikan oleh sebuah interpreter.
Sejarah versi
[sunting | sunting sumber]Sejak versi 6.0 bahasa prolog telah mendukung secara penuh pemrograman berorientasi objek.
Versi 7.0 membawa serta fitur polimorfisme parametrik.
Versi 7.2 memperkenalkan predikat anonim, serta namespace.
Versi 7.3 memperkenalkan kelas generik serta interface.
Contoh menara hanoi
[sunting | sunting sumber]Berikut ini merupakan contoh program Menara Hanoi yang diimplementasikan menggunakan bahasa pemrograman prolog.
class hanoi
predicates
hanoi: (unsigned N).
end class hanoi
implement hanoi
domains
pole = string.
clauses
hanoi(N):- move(N, "left", "centre", "right").
class predicates
move: (unsigned N, pole A, pole B, pole C).
clauses
move(0, _, _, _):- !.
move(N, A, B, C):-
move(N-1, A, C, B),
stdio::writef("move a disc from % pole to the % pole\n", A, C),
move(N-1, B, A, C).
end implement hanoi
goal
console::init(),
hanoi::hanoi(4).
Bacaan lanjutan
[sunting | sunting sumber]- (Inggris) Thomas W. de Boer, A Beginners Guide to Visual Prolog Diarsipkan 2011-12-25 di Wayback Machine. (English, Chinese)
- (Inggris) Eduardo Costa, Visual Prolog for Tyros Diarsipkan 2011-07-17 di Wayback Machine.
- (Inggris) Russian translation Diarsipkan 2011-07-19 di Wayback Machine. 210 pages (pdf)
- (Inggris) Giovanni Torrero, VISUAL PROLOG PER PRINCIPIANTI Italian 113 pages (pdf)
Lihat pula
[sunting | sunting sumber]Referensi
[sunting | sunting sumber]Pranala luar
[sunting | sunting sumber]- (Inggris) Visual Prolog Home Page Diarsipkan 2022-04-13 di Wayback Machine.
- (Inggris) Language Reference Diarsipkan 2011-07-17 di Wayback Machine.
- (Inggris) Tutorials Diarsipkan 2011-07-17 di Wayback Machine.
- (Inggris) wiki Diarsipkan 2008-05-16 di Wayback Machine.
- (Inggris) discussion forum Diarsipkan 2011-07-17 di Wayback Machine.
- (Inggris) Prolog Development Center