The interpreter to use to evaluate queries.
Helper function to create the database from the given filename or return a command-line error.
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.
Process a query by passing it and the program to the interpreter.
Process a query by passing it and the program to the interpreter.
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.
(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.