Skip to content
#

prolog-implementation

Here are 42 public repositories matching this topic...

RAbraham
RAbraham commented Jul 25, 2021

Hi,

%%logica Engineers

@Engine("sqlite");

Employee(name: "Alice", role: "Product Manager");
Employee(name: "Bob", role: "Engineer");
Employee(name: "Caroline", role: "Engineer");
Employee(name: "David", role: "Data Scientist");
Employee(name: "Eve", role: "Data Scientist");

Engineers(..r) :- Employee(..r), r.role == "Engineer";  # <====== This fails
# Engineers(name:, role:) :-
triska
triska commented Jun 19, 2021

May I suggest the following conforming extension to writing large integers in Prolog source files:

The tokenizer could be extended by accepting _ (underscore) between digits, so that large integers can for example be written as:

1_234_000

This would make large integers that occur in programs easier to read.

In addition, _ could be followed by newline so th

Improve this page

Add a description, image, and links to the prolog-implementation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the prolog-implementation topic, visit your repo's landing page and select "manage topics."

Learn more