![]() ![]() ![]() |
![]() |
Error 10: No sense at line X. This error means that the string cannot be evaluated as a term. Here are some of the possible reasons:
An infix operator minus (-) is accepted like a prefix.
Example:
2-1 gives this error. To correct it you have to put a space
between minus and one .
If you write 2- 1 , it will be OK.
An infix operator minus (-) is used like a prefix. (Minus is defined only like infix operator and is accepted like prefix only when it is glued to a number.)
Example:
X is -Y
gives this error. To correct it you have to put Y in brackets .
If you write X is -(Y)
, it will be OK.
An infix operator :- is used like a prefix. (
:- is defined
only like infix operator.)
Example:
:- goal.
gives this error. To correct it use ?- .
If you write ?- goal. it will be OK.
An infix operator is accepted like one written in prefix notation. (If you have an operator op then you can write X op Y as well as op(X, Y) )
Example:
2+(1/2) gives this error. To correct it you have to put a space
between plus and open bracket .
If you write 2+ (1/2) , it will be OK.
A functor is accepted like an infix operator.
Example:
write (X) gives this error. To correct it you have to remove
the space between write and open bracket .
If you write write(X) , it will be OK.
A space is written inside of the atom.
Example:
wri te(X) gives this error. To correct it you have to remove
this space.
If you write write(X) , it will be OK.
Some of the operators are not defined. Use Help/Operators to see which
ones are defined and how they are defined.