TDDD08 Logic Programming
FAQ
Q: How can I make Sicstus print lists with more than 10 elements?
A: Add the following directive to a file that you consult or compile and change the max_depth to the desired value:
:- prolog_flag(toplevel_print_options,_, [quoted(true),numbervars(true), portrayed(true),max_depth(20)]).
Q: How can I see the result of Prolog's compilation of DCGs?
A: Consult (rather than compile) the file with the DCG and then use the command
:- listing.
Page responsible: Victor Lagerkvist
Last updated: 2008-10-07