http://www.cs.bris.ac.uk/Teaching/Resources/COMS30106/graphviz/
The problem are these two lines when I try to load it in Sicstus 4.0.4:
writes(:-A) :- !,write(':-'),writes(A).
writes(?-A) :- !,write('?-'),writes(A).
Sicstus is telling me:
! Syntax error
! , or ) expected in arguments
! in line 90
! writes ( :-
! <<here>>
! A ) :- ! , write ( :- ) , writes ( A ) .
! Approximate lines: 89-91, file: '/....../graphviz_sic.pl'
! Syntax error
! , or ) expected in arguments
! in line 91
! writes ( ?-
! <<here>>
! A ) :- ! , write ( ?- ) , writes ( A ) .
Do I need an escape charcter for the :- so it works and if so, which one
is it?
Thanks,
Michael
This should run on any Prolog system:
writes(:-(A)) :- !,write((:-)),writes(A).
--- Jan