newbie question: swi,built-in predicate,get
From: chenyu (chenyu468_at_21cn.com)
Date: 01/17/04
- Next message: chenyu: "newbie question:file reading operation"
- Previous message: chenyu: "Re: newbie question,built-in predicate 'get'"
- Next in thread: Nick Wedd: "Re: newbie question: swi,built-in predicate,get"
- Reply: Nick Wedd: "Re: newbie question: swi,built-in predicate,get"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: chenyu: "newbie question:file reading operation"
- Previous message: chenyu: "Re: newbie question,built-in predicate 'get'"
- Next in thread: Nick Wedd: "Re: newbie question: swi,built-in predicate,get"
- Reply: Nick Wedd: "Re: newbie question: swi,built-in predicate,get"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|