Re: Meaning of ':' and '{}'
- From: "Advait" <advait_raut@xxxxxxxxxxxxxx>
- Date: 20 May 2006 02:09:45 -0700
Hello everyone,
I had a problem with ':' in the developement of expert shell in SWI
KNOWLEDGE BASE
:- op(900,xfx,':').
:- op(880,xfx,then).
:- op(870,fx,if).
:- op(550,xfy,or).
rule : if a or b or c or d or e then problem.
%% Note the ':'
END KNOWLEDGE BASE
c:/pl/test.pl compiled 0.00 sec, 1,088 bytes
Welcome to SWI-Prolog (Multi-threaded, Version 5.4.7)
Copyright (c) 1990-2003 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
1 ?- listing.
Yes
2 ?-
This shows no rule.
If we replace ':' by any other atom it gives proper result.
Does any thing wrong with ':' ?
Please, can any one give me the solution on it to use in SWI ?
-------------------------------
yours
Advait
.
- Follow-Ups:
- Re: Meaning of ':' and '{}'
- From: Joachim Schimpf
- Re: Meaning of ':' and '{}'
- References:
- Meaning of ':' and '{}'
- From: Advait
- Re: Meaning of ':' and '{}'
- From: Bart Demoen
- Meaning of ':' and '{}'
- Prev by Date: Re: String is not string in SWI-Prolog ?
- Next by Date: Re: Meaning of ':' and '{}'
- Previous by thread: Re: Meaning of ':' and '{}'
- Next by thread: Re: Meaning of ':' and '{}'
- Index(es):
Relevant Pages
|
|