Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portable Prolog toplevel #2

Open
triska opened this issue Sep 24, 2016 · 0 comments
Open

Portable Prolog toplevel #2

triska opened this issue Sep 24, 2016 · 0 comments

Comments

@triska
Copy link
Owner

triska commented Sep 24, 2016

ediprolog is currently tailored for Scryer Prolog and SWI-Prolog. The idea carries over to other Prolog systems too of course. Already now, there is also a variant for YAP, and Haitao Zhang has generously contributed a patch to make it work for XSB. See #1 for more information.

Thus, how do we best support the various Prolog systems?

In my opinion, the best way out is to write a portable Prolog toplevel (in Prolog) and include it in the Lisp file. Then, no matter which Prolog system is being used, we could first load our custom toplevel, and then handle all systems in a uniform way. Ideally, only the way in which the system is invoked will need to be adapted for different Prolog systems.

Writing a portable toplevel notably requires a variable_names/2 option in read and write options. There is active work in the Prolog ISO standard to get such options included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant