Syntax Error in GNU Prolog 1.2.16



I have some facts in a program that I am running under GNU Prolog that
I am trying to declare as dynamic. Here are the facts:

:- dynamic(loc_list/2).
loc_list([apple, broccoli, crackers], kitchen).

:- dynamic(turned_off/1).
turned_off(flashlight).

:- dynamic(here/1).
here(kitchen).

:- dynamic(door_closed/2).
door_closed(kitchen, cellar).

When I try to run:

consult('myadven.pro').

....in the listener I get the following error for each of the above
facts:

error: syntax error: previous operator needs brackets (char:<a number>)

....where <a number> seems to indicate the position where the error
occurs. In each of these facts, the error is occurring immediately
after the '/' character.

I also get a similar bracket error for the following:

can_take(Thing) :-
Thing = door,
write('You can''t take a door.'), % Error occurs here!
...

And a bracket error here as well:

can_take(Thing) :-
(not(Thing = door)), % Error occurs here!
write('There is no '),
...

In both of these rules the error is occuring immediately before the ','
following the 'X = X' query.

I cannot figure out why these errors are occurring. I don't see
anything wrong with my syntax; it compiled fine on Amzi! Prolog but I
need it to work on GNU Prolog. Any help is GREATLY appreciated!

.



Relevant Pages

  • Re: Monty Hall and Graf/Seles
    ... > for the remaining door ... > And the chance of the third door is 2/3. ... > Then Player A gets stabbed and can't play. ... pure speculation in spite of all the facts and statistics thrown in. ...
    (rec.sport.tennis)
  • Re: Men are too frightened to give women the compliments they need
    ... I also like having the door held open for me and will smile ... recieve some door holding. ... He pulled his sons to one side and held the ... presents facts and arguments that I wish did not exist. ...
    (soc.men)
  • Re: the party is over - bioshock cracked
    ... Well no front door lock has ever worked but I bet you still lock your front door don't you and how about your car? ... In fact this type of reply is a classic symptom of a debater that has run out of logical reasoning and arguments to defend their cause. ... I think I'm just going to claim that copy protection does actually work and then point to a few rather vague facts as this is what seems to pass for logically reasoning for those on the holy crusade. ...
    (comp.sys.ibm.pc.games.action)
  • Re: 16yr old kid shower question
    ... >>>year old and not knowing the facts. ... >>>His young age sort of explains why maybe she answered the door. ... president?s budget to handle homeland security and the war ...
    (alt.true-crime)
  • Re: U.S-led forces kill up to 50 Of Highlanders relatives
    ... Taliban strongholds on Monday and may have killed up to 50 of the ... That's just USA speak for women and children at a wedding. ... Facts - they just can't handle 'em eh? ... and it is quite obvious that Taliban terrorists were running from door to ...
    (soc.culture.scottish)