Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
10 user(s) are online (9 user(s) are browsing encyclopedia)

Members: 0
Guests: 10

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Visual Prolog

Visual Prolog, also formerly known as PDC Prolog and Turbo Prolog, is a strongly typed object-oriented extension of Prolog. As Turbo Prolog it was marketed by Borland, but it is now developed and marketed by the Danish firm Prolog Development Center (PDC) that originally produced it.

Visual Prolog is compiled rather than interpreted, as is traditional for logic languagues.

The core of Visual Prolog are Horn clauses like in Prolog, but unlike Prolog, Visual Prolog has always been Data type. Since version 6.0 the language has been fully object-oriented (programming).

==Hanoi Example==

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 , A, B), move(N-1, C, B, A). end implement hanoi goal console::init(), hanoi::hanoi(4).

=See also=

  • Object-oriented programming
  • Logic programming
  • =External links=

  • [http://www.visual-prolog.com/ Official Visual Prolog Home Page]
  • [http://www.pdc.dk/ Prolog Development Center]