Skip to content

Integrate Prolog #3

@TimothyGillespie

Description

@TimothyGillespie

The goal of this task is to make prolog-programs basically runnable in our browser-environment.

A good starting point for this is the khazuar/tau-prolog-branch, which is already installing the package via npm and importing it into a file containing a wrapper-class, handling basic in- and output.

Open problems:

  • how to deal with write operations inside prolog? These seem to go to the javascript-console for now. We'd like to get them as separate result from the VM.
  • Transform output into something more useable.
  • Change the result to a Async Iterator. This should make it possible to deal with non-terminating prolog-programs. fun
  • Does the core-library contain all the functions we need for diproche? Are there differences in the behavior of tau-prolog and SWI-prolog?

The final result should contain a few more test-cases to demonstrate that these problems have been solved and how to use them. (Test-cases are wonderful for other programmers as examples).

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions