users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax errors?


From: Piotr Sroczynski
Subject: Syntax errors?
Date: Mon, 5 Mar 2001 15:20:29 +0100

Hi,

Here is three lines long test program:

:- op(600,xfy,':').
a(X):- (X = ':'). 
%a(':').

When compiled in GNU Prolog 1.2.6 I receive:
test.pl:2 error: syntax error: current or 
previous operator needs brackets (char:13)
test.pl:3 error: syntax error: new-line expected 
here for %%... comment (char:9)

If I comment out the second line and remove 
comment from third and add 4th - empty line, 
there are no errors. 
I especially need something like the second, not 
third line what should I do.

Regards,
Piotr Sroczynski



reply via email to

[Prev in Thread] Current Thread [Next in Thread]