> 
> | ?- [Tutorial0.pro].

Normally you don't need to put the file extension on at all and `consult` 
expects an atom so at the very least the above line maybe ought to look like:

?- ['Tutorial0].

Apart from that I can't see anything else wrong with the information you 
gave... see how the above works out.

The page on consulting:

    http://www.gprolog.org/manual/gprolog.html#sec10


:_
Cheers,
Sean.


> uncaught exception: error(syntax_error('user_input:2 (char:11) , | ]
> or operator expected in list'),read_term/3)
> | ?-
> 
> The Tutorial0.pro was edited in Emacs and has the following contents:
> <file>
> likes(mary,food).
> likes(mary,wine).
> likes(john,wine).
> likes(john,mary).
> 
> </file>
> 
> So what is the problem, why can't I consult this file into gprolog?
> 
> -- 
> Regards from Pal
> 
> _______________________________________________
> Users-prolog mailing list
> Users-prolog@gnu.org
> https://lists.gnu.org/mailman/listinfo/users-prolog


-- 
me <obji...@gmail.com>

_______________________________________________
Users-prolog mailing list
Users-prolog@gnu.org
https://lists.gnu.org/mailman/listinfo/users-prolog

Reply via email to