Scryer-prolog: Ctrl-D during [user] doesn't work

Created on 23 Aug 2019  路  5Comments  路  Source: mthom/scryer-prolog

Hi,

I tried Ctrl-D during [user], but it didn't work. I get this here:

image

I pressed enter after "foo.", and then I pressed Ctrl-D.

Most helpful comment

A simple work around would be if the Prolog system could recognize end_of_file atom. But this aint also not working in Scryer-Prolog. On the other hand many other Prolog systems support it.

The end_of_file atom has the advantage, that it is not dependent on some platform/terminal specific controls. Also note its just a normal Prolog text line, that also needs a terminating period.

SWI-Prolog supports end_of_file atom during user consult:

image

YAP Prolog supports end_of_file atom during user consult:

image

All 5 comments

Can I specify the file name of a Prolog text on the command line, while starting scryer Prolog? The readme.MD doesn't show such an example. Is this possible with scryer Prolog as a workaround?

Related: #150.

A simple work around would be if the Prolog system could recognize end_of_file atom. But this aint also not working in Scryer-Prolog. On the other hand many other Prolog systems support it.

The end_of_file atom has the advantage, that it is not dependent on some platform/terminal specific controls. Also note its just a normal Prolog text line, that also needs a terminating period.

SWI-Prolog supports end_of_file atom during user consult:

image

YAP Prolog supports end_of_file atom during user consult:

image

Can I specify the file name of a Prolog text on the command line, while starting scryer Prolog? The readme.MD doesn't show such an example. Is this possible with scryer Prolog as a workaround?

Not yet, no.

Can be closed, because now it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

triska picture triska  路  3Comments

notoria picture notoria  路  4Comments

UWN picture UWN  路  3Comments

XVilka picture XVilka  路  3Comments

triska picture triska  路  4Comments