Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: prolog compiler

New Message Reply About this list Date view Thread view Subject view Author view

Stephen Edwards (edwards@CS.VT.EDU)
Thu, 1 Nov 2001 13:30:43 -0500


Message-ID:  <3BE194D3.5216724E@cs.vt.edu>
Date:         Thu, 1 Nov 2001 13:30:43 -0500
From: Stephen Edwards <edwards@CS.VT.EDU>
Subject:      Re: prolog compiler

> the compiler returns a new line
> with a "|" displayed.

First, we all know it is an "interpreter"; if not, review Chapter 1.

Second, the vertical bar is the interpreter's "continuation prompt",
meaning that it is waiting for you to finish typing in the goal that
you have started. As others have mentioned, you need to include a
period at the end of your goal, or the interpreter will think there
is more (such as a comma, followed by something else to do).

> if it hit ctrl+z, it tells
> me i have an unexpected end of file.

Yes, because it was waiting for the end of the goal, but ran out
of input instead.

                                -- Steve

--
Stephen Edwards            604 McBryde Hall          Dept. of Computer Science
e-mail      : edwards@cs.vt.edu           U.S. mail: Virginia Tech (VPI&SU)
office phone: (540)-231-5723                         Blacksburg, VA  24061-0106
-------------------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>