Editor
Prolog clauses are written in Excel cells. The way a clause can be written in one ore several cells is versatile. All the following examples are valid PliX clauses:
- A clause can be written in a single cell
- A clause can be split in several cells
- A clause can be split in several rows
- If a clause is split in several cells/rows, the split has to be where it would be acceptable to insert a space ;
In other words : an atom, a number, a Variable, a functor with its open parenthesis, ... must not be split - A /* block comment */ must not be inserted between the beginning and the end of a clause
- A % row comment must not be inserted inside a clause
consult() and scope of programs
- The scope of a program is the whole workbook (with multiple worksheets)
- The consult() button, in the PliX ribbon, launches consultation of the current worksheet only
- You may have a program written on several worksheets. For example facts on a worksheet, rules on another, ... In this case, you have to consult each of these worksheets one by one
- Queries can be written before or after consultation.
- The reset() button, in the PliX ribbon, delete the whole program and any previous actions. It makes everything ready for a new consultation
Console output
PliX displays its answer in a message box.
You may add a console-like display.
In the Plix ribbon, thick the console button:
ISO-Prolog
PliX follows as much as possible ISO-Prolog syntax. For example:
- PliX understand this query:
?- 4 =< 5.
- PliX do not understand this:
?- 4 <= 5.
To be noticed : Excel would understand (for example in a formula) this syntax: 4 <= 5