Showing posts with label prolog. Show all posts
Showing posts with label prolog. Show all posts
Tuesday, 25 March 2014
Monday, 24 March 2014
Problem #2: "Syntax error: Operator priority clash"
Description
Solution
Replace the comma on the last line with a period.SWI-Prolog uses the term for illegal sequences of operators. I.e.Quoted from: http://www.groupsrv.com/computers/about124076.html
a :- b :- c.
Comment
Even though I new to Prolog (this is my second program using it), I feel like I'll continue to make this mistake if I ever use Prolog again.
Subscribe to:
Posts (Atom)