X-Prolog

3.1
120 reviews
10K+
Downloads
Content rating
Everyone
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image

About this app

X-Prolog is a lightweight Prolog system intended to facilitate programming in Prolog on Android. The app runs Prolog programs in a text view, web view or as a bound service to a client app. A sample client is available at https://github.com/xprolog/sample-client.

Note that Google Play restricts the use of all-file-access permission in apps targeting Android 11 or later. To install X-Prolog with all-file-access permission, refer to https://github.com/xprolog/xp/releases.

got tool? The app depends on user-defined tools for editing and building projects. The tools are written in Prolog and are visible on devices with developer options. The app and tools exchange data through transfer variables and formatted output. This release includes trivial tools intended to demonstrate the app's tooling feature.

The app defines extension points at which transfer variables are available (to tools) and formatted output (from tools) is recognized. A tool may be configured to contribute to one or more extension points by specifying a context term.

A context term is read-term of the form context(Name, FileTypes, Priority) , where Name is the name of an extension point, FileTypes is a list of acceptable file types and Priority is an integer not less than zero, the meaning of which varies depending on the extension point.

This release defines three extension points: build, edit and reconcile, which allow tools to contribute to, respectively, building projects, editing source files and reconciling source models.

To build a project, open a file in the top directory of the project and click Build. To export the project into a runnable object file on the local file system, click Export. To run the object file, click Run.

A file is considered source-file if there exists one or more tools that build the file, possibly transforming it into another source file. This release includes a single build tool, Compile, which translates a Prolog source file (.pl) into a quick-load file (.ql).

Known issues include occurs check, logical update view, attributed variables among others.
Updated on
Nov 20, 2022

Data safety

Safety starts with understanding how developers collect and share your data. Data privacy and security practices may vary based on your use, region, and age. The developer provided this information and may update it over time.
No data shared with third parties
Learn more about how developers declare sharing
No data collected
Learn more about how developers declare collection

Ratings and reviews

3.4
111 reviews
Dan Wilhelm
October 25, 2022
Really impressive app - highly recommend if you want to try Prolog! It not only includes an interactive terminal, but also allows for graphical output such as chessboards and conway's game of life (both included as examples). If new to Prolog, you'll want to pair this with one of many great online tutorials.
2 people found this review helpful
Did you find this helpful?
frederick brown
April 18, 2024
I installed this app on bothAndroid 12 and Android 13 phones. The permission settings for this app are broken somehow. Both my phones refuse to allow me to grant permissions to the app to access test files so that I can create program files to run my own prolog programs. Please fix the permissions for this app.
1 person found this review helpful
Did you find this helpful?
Matthias Freiburghaus
October 21, 2020
I just installed x-prolog on my android phone and I absolutly love the fact I have a fully functional prolog environment with me wherever I go. Everything seems to work fine, and if you are somewhat accustomed to prolog, everything about using the system is straightforward and easy to figure out. For serious programm development I would not recommend it, but if you just had an interesting idea you want to try out or fell like killing some time with some nice prolog action while you are on the road, x-prolog is awesome.
11 people found this review helpful
Did you find this helpful?

What's new

Initial release

App support