|
|
Logic Programming
06-25433 Autumn 2012 |
|
|
|
||
|
Lecture 15: Writing meta-circular interpreters in Prolog So far it's been assumed that Prolog runs with its search procedure _ top-down, depth first. This lecture is intended to show that programs don't have to be run this way (although Prolog might be a practical compromise). Even sticking to top-down execution, there are a variety of ways in which Prolog’s search can be changed to alter the order in which solutions are found. Three meta-interpreters are given:
|
|||||||
|
|||||||
|
|||||||
|
|||||||
|
|||||||
|
|||||||
|
|||||||
|
|||||||