Re: uncaught exception

me <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
> 
> | ?- [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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/users-prolog


-- 
me <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.