Process a query by passing it and the program to the interpreter.
Process a query by passing it and the program to the interpreter.
Process the program by analysing it to check for semantic errors.
Process the program by analysing it to check for semantic errors. If any messages are produced, print them and return false. Otherwise, save the tree for the interpreter and return true.
If the program is correct, this is the tree representing it.
If the program is correct, this is the tree representing it. Needed so that the process method can access it.
The prompt to print before each line of input is read.
The prompt to print before each line of input is read.
(Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
The parser to use to parse each line of interactive input.
The parser to use to parse each line of interactive input. We will read queries, which are just literals followed by a period.
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 1.2.1) Use PrettyPrinter.any instead.
Conduct semantic analysis on the Prolog program in the file given as the first command-line argument. If the program is correct, enter an interactive read-eval-print loop (REPL) to read queries. For each query, call the interpreter to evaluate it.