newbie question: swi,built-in predicate,get

From: chenyu (chenyu468_at_21cn.com)
Date: 01/17/04


Date: 16 Jan 2004 18:59:28 -0800

Hello everyone,
I am writing to run Clocksin's "read-in" example. It requires to read
a English sentence from keyboard and save it to a list.

But the built-in predicate "get" still makes me puzzle. For example:

 get0(X).
|: abc %<==== I have input 3 characters 'abc', not just 'a'
      %<==== I think get0 goal just use one character and return
success. right?

X = 97
% Break level 1 %<========= Does prolog into debug mode? How to
                  %========= return top level?
[1] 3 ?- d
| f
| .
ERROR: Syntax error: Operator expected
ERROR: c

ERROR: ** here **
ERROR: d
f .
[1] 3 ?- d.

Thank you for your attention.
kind regards/chenyu



Relevant Pages

  • Re: Agile/XP book now freely available
    ... I agree that XP is no guarantee of success. ... > method in every class to permit convenient unit testing! ... Pair programming does allow you to touch the keyboard. ...
    (comp.lang.java.programmer)
  • reading from a keyboard as HID
    ... I am trying to read from a USB keyboard using vb.net and HID classes. ... Success = MyDeviceManagement.RegisterForDeviceNotifications _ ...
    (microsoft.public.dotnet.academic)
  • reading from a USB keyboard (HID)
    ... I am trying to read from a USB keyboard using vb.net and HID classes. ... Success = MyDeviceManagement.RegisterForDeviceNotifications _ ...
    (microsoft.public.dotnet.languages.vb)
  • reading from secondary USB keyboard
    ... I am trying to read from a USB keyboard using vb.net and HID classes. ... Success = MyDeviceManagement.RegisterForDeviceNotifications _ ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Blade100 kbd trouble on poweron
    ... just the keyboard and the mouse. ... I once tried to add an USB stick ... > without success, but that was a while ago and never posed any problems. ... Uwe ...
    (comp.sys.sun.hardware)