We need to pass dotlists(true) to read_term on versions 7 or greater of SWI-PL, or else lists get parsed as being made of [|] elements as opposed to dot (.). This option should be passed only on SWI-PL version 7; prior versions and GNU Prolog break when given this option (amazing what happens when you completely deviate from the standard...).
We need to pass
dotlists(true)toread_termon versions 7 or greater of SWI-PL, or else lists get parsed as being made of[|]elements as opposed to dot (.). This option should be passed only on SWI-PL version 7; prior versions and GNU Prolog break when given this option (amazing what happens when you completely deviate from the standard...).