TuPrologSolveQuery
The solve subcommand of TuPrologCmd: java -jar 2p-repl.jar solve QUERY [-n N].
Rather than starting an interactive loop, it parses and solves a single, non-interactive query argument with the solver TuPrologCmd.getSolver builds (inheriting the parent command's -T/--theory, -t/--timeout and --oop options), prints the resulting solution(s), and then terminates -- suited to scripting or one-off invocations where a full REPL session is unnecessary.
By default all solutions are printed interactively, one at a time, prompting for ; to continue (see AbstractTuPrologCommand.printSolutions); passing -n/--numberOfSolutions with a positive value instead prints up to that many solutions without prompting (see AbstractTuPrologCommand.printNumSolutions).
Properties
Functions
Retrieves the parent TuPrologCmd's solver (see TuPrologCmd.getSolver) and uses it to solve and print this subcommand's query.